projects
/
util-vserver.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
removed since obsoleted by configuration.xml
[util-vserver.git]
/
util-vserver
/
lib
/
ioctl-getxflg.hc
diff --git
a/util-vserver/lib/ioctl-getxflg.hc
b/util-vserver/lib/ioctl-getxflg.hc
index
3d50c6f
..
6006f97
100644
(file)
--- a/
util-vserver/lib/ioctl-getxflg.hc
+++ b/
util-vserver/lib/ioctl-getxflg.hc
@@
-21,7
+21,6
@@
#endif
#include "vserver.h"
-#include "vserver-internal.h"
#include "ext2fs.h"
#include <sys/ioctl.h>
@@
-35,5
+34,10
@@
vc_X_get_xflg(int fd, long *flags)
*flags = 0;
rc = ioctl(fd, FIOC_GETXFLG, flags);
+ if (rc<-1) {
+ errno = -rc;
+ rc = -1;
+ }
+
return rc;
}