X-Git-Url: https://git.dogcows.com/gitweb?a=blobdiff_plain;f=src%2Fextract.c;h=e35c8f64d4cff763397aec98abedef3c2ee61ea6;hb=1cd272522797dbdb87d2c140ea2079416b3b47cc;hp=0e499e5d4121649cc3c468ecb4d9aeda3aba811b;hpb=6a61354ea0dd97af5c87643e9bf5dfd2a31f2cea;p=chaz%2Ftar diff --git a/src/extract.c b/src/extract.c index 0e499e5..e35c8f6 100644 --- a/src/extract.c +++ b/src/extract.c @@ -23,6 +23,7 @@ #include #include #include +#include #include #include "common.h" @@ -153,7 +154,7 @@ struct string_list void extr_init (void) { - we_are_root = geteuid () == 0; + we_are_root = geteuid () == ROOT_UID; same_permissions_option += we_are_root; same_owner_option += we_are_root;