aboutsummaryrefslogtreecommitdiffstats
path: root/src/fcopy
diff options
context:
space:
mode:
authorLibravatar netblue30 <netblue30@yahoo.com>2017-09-16 11:01:07 -0400
committerLibravatar netblue30 <netblue30@yahoo.com>2017-09-16 11:01:07 -0400
commit73bc66e1c4a6d99493cb91153d0eea0536318ff7 (patch)
tree604883a14076bb70483f8a80d573e8f73bec5eb4 /src/fcopy
parentfixed systemd-resolved integration - bug #1531 (diff)
downloadfirejail-73bc66e1c4a6d99493cb91153d0eea0536318ff7.tar.gz
firejail-73bc66e1c4a6d99493cb91153d0eea0536318ff7.tar.zst
firejail-73bc66e1c4a6d99493cb91153d0eea0536318ff7.zip
cleanup
Diffstat (limited to 'src/fcopy')
-rw-r--r--src/fcopy/main.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/fcopy/main.c b/src/fcopy/main.c
index 9f525f2a8..e7b4ffa8a 100644
--- a/src/fcopy/main.c
+++ b/src/fcopy/main.c
@@ -213,7 +213,7 @@ static char *check(const char *src) {
213 goto errexit; 213 goto errexit;
214 } 214 }
215 else { 215 else {
216 if (s.st_uid != user /* || s.st_gid != getgid()*/) 216 if (s.st_uid != user)
217 goto errexit; 217 goto errexit;
218 } 218 }
219 219
@@ -222,7 +222,7 @@ static char *check(const char *src) {
222 return rsrc; // normal exit from the function 222 return rsrc; // normal exit from the function
223 223
224errexit: 224errexit:
225 fprintf(stderr, "Edddddrror fcopy: invalid file %s\n", src); 225 fprintf(stderr, "Error fcopy: invalid file %s\n", src);
226 exit(1); 226 exit(1);
227} 227}
228 228