Print this page
4146 getconf(1) does not support XATTR_ENABLED, XATTR_EXISTS, SATTR_ENABLED, SATTR_EXISTS keys
Reviewed by: Cedric Blancher <cedric.blancher@gmail.com>
Reviewed by: Irek Szczesniak <iszczesniak@gmail.com>

@@ -219,10 +219,12 @@
         _PC_SYNC_IO,            "_POSIX_SYNC_IO",       PATHCONF,  NOFLAGS,
 
         /* Large File Summit name (UNIX 98) */
 
         _PC_FILESIZEBITS,       "FILESIZEBITS",         PATHCONF,  NOFLAGS,
+        _PC_XATTR_ENABLED,      "XATTR_ENABLED",        PATHCONF,  NOFLAGS,
+        _PC_XATTR_EXISTS,       "XATTR_EXISTS",         PATHCONF,  NOFLAGS,
 
         /* UNIX 03 Additions */
 
         /* Advisory Information (ADV) */
         _PC_ALLOC_SIZE_MIN,     "POSIX_ALLOC_SIZE_MIN", PATHCONF,  NOFLAGS,

@@ -232,10 +234,15 @@
         _PC_REC_XFER_ALIGN,     "POSIX_REC_XFER_ALIGN", PATHCONF,  NOFLAGS,
 
         _PC_2_SYMLINKS,         "POSIX2_SYMLINKS",      PATHCONF,  NOFLAGS,
         _PC_SYMLINK_MAX,        "SYMLINK_MAX",          PATHCONF,  NOFLAGS,
 
+        _PC_ACL_ENABLED,        "ACL_ENABLED",          PATHCONF,  NOFLAGS,
+        _PC_MIN_HOLE_SIZE,      "MIN_HOLE_SIZE",        PATHCONF,  NOFLAGS,
+        _PC_SATTR_ENABLED,      "SATTR_ENABLED",        PATHCONF,  NOFLAGS,
+        _PC_SATTR_EXISTS,       "SATTR_EXISTS",         PATHCONF,  NOFLAGS,
+
         /* UNIX 08 additions */
 
         _PC_TIMESTAMP_RESOLUTION, "_POSIX_TIMESTAMP_RESOLUTION",
             PATHCONF,   NOFLAGS,
 

@@ -824,20 +831,21 @@
         case CONFSTR:
                 if (argc > 2)
                         return (usage());
                 errno = 0;
                 len = confstr((int)scp->value, NULL, (size_t)0);
-                if (len == 0)
+                if (len == 0) {
                         if (errno == EINVAL) {
                                 (void) fprintf(stderr, gettext(INVAL_ARG),
                                     name);
                                 return (1);
                         } else {
                                 /* DO NOT TRANSLATE */
                                 (void) printf("undefined\n");
                                 return (0);
                         }
+                }
                 /*
                  * allocate space to store result of constr() into
                  */
                 if ((buffer = malloc(len)) == NULL) {
                         (void) fprintf(stderr,