added preliminary support for the patch from
[util-vserver.git] / util-vserver / src / chxid.c
index 2e86b2b..7235847 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);
@@ -95,7 +92,7 @@ fixupParams(struct Arguments UNUSED *args, int argc)
     exit(1);
   }
 
-  args->ctx            = resolveCtx(args->ctx_str);
+  args->ctx            = vc_xidopt2xid(args->ctx_str, true, 0);
   args->do_display_dir = !args->do_recurse;
   args->do_display_dot = true;
 }