X-Git-Url: http://gitweb.michael.orlitzky.com/?p=apply-default-acl.git;a=blobdiff_plain;f=src%2Flibadacl.c;h=20bb715ea7b5e429911061511f09226bf065e2ce;hp=e75fdece6a36edd7ece544944ffa920a64970d04;hb=eb1715a253bcbf3a6ae51403b34cd6a20b894ec1;hpb=0ff54b9d02fab3c36c91d5e26d280417521fe198 diff --git a/src/libadacl.c b/src/libadacl.c index e75fdec..20bb715 100644 --- a/src/libadacl.c +++ b/src/libadacl.c @@ -69,7 +69,7 @@ int safe_open_ex(int at_fd, char* pathname, int flags) { /* No more slashes, this is the base case. */ return openat(at_fd, pathname, flags); } - else if (firstslash[1] == '\0') { + if (firstslash[1] == '\0') { /* The first slash is the last character; ensure that we open a directory. */ firstslash[0] = '\0';