set caps before flags so that caps can be changed in the same transaction
authorEnrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
Fri, 12 Mar 2004 06:02:35 +0000 (06:02 +0000)
committerEnrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
Fri, 12 Mar 2004 06:02:35 +0000 (06:02 +0000)
which deletes 'setup'

git-svn-id: http://svn.linux-vserver.org/svn/util-vserver/trunk@1236 94cd875c-1c1d-0410-91d2-eb244daf1a30

util-vserver/src/vattribute.c

index cf882e4..12b44b9 100644 (file)
@@ -175,10 +175,10 @@ int main(int argc, char *argv[])
 
   if (args.xid==VC_NOCTX) args.xid = Evc_get_task_xid(0);
 
-  if (vc_set_flags(args.xid, &args.flags)==-1)
-    perror("vc_set_flags()");
-  else if (vc_set_ccaps(args.xid, &args.caps)==-1)
-    perror("vc_set_ccaps()");
+  if (vc_set_ccaps(args.xid, &args.caps)==-1)
+    perror(ENSC_WRAPPERS_PREFIX "vc_set_ccaps()");
+  else if (vc_set_flags(args.xid, &args.flags)==-1)
+    perror(ENSC_WRAPPERS_PREFIX "vc_set_flags()");
   else if (optind<argc)
     EexecvpD(argv[optind], argv+optind);
   else