minor optimizations
[util-vserver.git] / util-vserver / src / chxid.c
index fe5bfd5..f6bd807 100644 (file)
@@ -67,12 +67,9 @@ showVersion()
 }
 
 bool
-handleFile(char const *name, char const * display_name,
-          struct stat const *exp_st)
+handleFile(char const *name, char const * display_name)
 {
-  int  rc = vc_set_iattr_compat(name, exp_st->st_dev, exp_st->st_ino,
-                                global_args->ctx, 0, VC_IATTR_XID,
-                                &exp_st->st_mode);
+  int  rc = vc_set_iattr(name, global_args->ctx, 0, VC_IATTR_XID);
   
   if (rc==-1) {
     perror(display_name);
@@ -97,4 +94,5 @@ fixupParams(struct Arguments UNUSED *args, int argc)
 
   args->ctx            = resolveCtx(args->ctx_str);
   args->do_display_dir = !args->do_recurse;
+  args->do_display_dot = true;
 }