acl-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[PATCH] tools/getfacl.c: added --one-filesystem feature


From: X Polish
Subject: [PATCH] tools/getfacl.c: added --one-filesystem feature
Date: Fri, 30 Oct 2020 10:22:08 +0100

    Hello,

patch added -X (--one-filesystem) option which limit print out files on current filesystem.

patch against 
commit 40c190dc1f6630054d7d2f850a0b9fb10c7bbcb1 (HEAD -> master, origin/master, origin/HEAD)

45c45
< #  define CMD_LINE_OPTIONS "aceEsRXLPtpndvh"
---
> #  define CMD_LINE_OPTIONS "aceEsRLPtpndvh"
62d61
<       { "one-file-system", 0, 0, 'X'},
89,90d87
< int opt_onefilesystem;  /* get ACL only on current filesystem */
< struct stat st_onefilesystem;  /* stat of file (command line argument)  */
471,477d467
<       /* Skip all files not on same filesystem */
<       if (opt_onefilesystem) {
<               if (st->st_dev != st_onefilesystem.st_dev ) {
<                       return 0;
<               }
<       }
<
601d590
< "  -X, --one-file-system   skip files on different filesystems\n"
713,716d701
<                       case 'X': /* one filesystem */
<                               opt_onefilesystem = 1;
<                               break;
<
757,762d741
<                       if (opt_onefilesystem) {
<                               if( stat(argv[optind], &st_onefilesystem) != 0 ) {
<                                       opt_onefilesystem = 0;
<                               }
<                       }


    Best regards    Pavel Polacek

reply via email to

[Prev in Thread] Current Thread [Next in Thread]