From: Enrico Scholz Date: Fri, 12 Mar 2004 06:02:35 +0000 (+0000) Subject: set caps before flags so that caps can be changed in the same transaction X-Git-Tag: VERSION_0_10~338 X-Git-Url: http://git.linux-vserver.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=105d8d6809ae85306c936e51d12903aec123bdc5;p=util-vserver.git set caps before flags so that caps can be changed in the same transaction which deletes 'setup' git-svn-id: http://svn.linux-vserver.org/svn/util-vserver/trunk@1236 94cd875c-1c1d-0410-91d2-eb244daf1a30 --- diff --git a/util-vserver/src/vattribute.c b/util-vserver/src/vattribute.c index cf882e4..12b44b9 100644 --- a/util-vserver/src/vattribute.c +++ b/util-vserver/src/vattribute.c @@ -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