X-Git-Url: http://git.linux-vserver.org/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=util-vserver%2Flib%2Fioctl-setxflg.hc;h=f320ee53fd593bfcf75ba49a86f1ce7e93360617;hb=a7ea10b82c037bc76ca2cb1fd0d0f8f80624cb4f;hp=24cee02011b623c1612ef99033ae92f3c3fc1cfb;hpb=b85ddf8a13e46569ea89d1bca30e4925b7d0a71b;p=util-vserver.git diff --git a/util-vserver/lib/ioctl-setxflg.hc b/util-vserver/lib/ioctl-setxflg.hc index 24cee02..f320ee5 100644 --- a/util-vserver/lib/ioctl-setxflg.hc +++ b/util-vserver/lib/ioctl-setxflg.hc @@ -33,10 +33,7 @@ vc_X_set_xflg(int fd, long flags) int rc; rc = ioctl(fd, FIOC_SETXFLG, &flags); - if (rc<-1) { - errno = -rc; - rc = -1; - } + ENSC_FIX_IOCTL(rc); return rc; }