aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorLibravatar netblue30 <netblue30@yahoo.com>2016-03-01 07:58:02 -0500
committerLibravatar netblue30 <netblue30@yahoo.com>2016-03-01 07:58:02 -0500
commit4e17da02e2df8f8f4f3dda12ba590de432fc1b0c (patch)
treeada42011d1b79e269a6c357255272dbcbb7e7340
parentMerge pull request #340 from vn971/master (diff)
downloadfirejail-4e17da02e2df8f8f4f3dda12ba590de432fc1b0c.tar.gz
firejail-4e17da02e2df8f8f4f3dda12ba590de432fc1b0c.tar.zst
firejail-4e17da02e2df8f8f4f3dda12ba590de432fc1b0c.zip
scp fixes
-rw-r--r--README1
-rw-r--r--src/firejail/main.c8
2 files changed, 8 insertions, 1 deletions
diff --git a/README b/README
index a4b963512..29189e751 100644
--- a/README
+++ b/README
@@ -25,6 +25,7 @@ yumkam (https://github.com/yumkam)
25 - man page fixes 25 - man page fixes
26Vasya Novikov (https://github.com/vn971) 26Vasya Novikov (https://github.com/vn971)
27 - Wesnoth profile 27 - Wesnoth profile
28 - manpage fixes
28mahdi1234 (https://github.com/mahdi1234) 29mahdi1234 (https://github.com/mahdi1234)
29 - cherrytree profile 30 - cherrytree profile
30jrabe (https://github.com/jrabe) 31jrabe (https://github.com/jrabe)
diff --git a/src/firejail/main.c b/src/firejail/main.c
index 9e0be7bfa..31c58d8ae 100644
--- a/src/firejail/main.c
+++ b/src/firejail/main.c
@@ -560,7 +560,6 @@ int main(int argc, char **argv) {
560 int highest_errno = errno_highest_nr(); 560 int highest_errno = errno_highest_nr();
561#endif 561#endif
562 562
563
564 // drop permissions by default and rise them when required 563 // drop permissions by default and rise them when required
565 EUID_INIT(); 564 EUID_INIT();
566 EUID_USER(); 565 EUID_USER();
@@ -579,6 +578,10 @@ int main(int argc, char **argv) {
579 found = 1; 578 found = 1;
580 break; 579 break;
581 } 580 }
581 if (strcmp(argv[i], "--") == 0)
582 break;
583 if (strncmp(argv[i], "--", 2) != 0)
584 break;
582 } 585 }
583 586
584 if (found == 0) { 587 if (found == 0) {
@@ -1475,6 +1478,9 @@ int main(int argc, char **argv) {
1475 if (strstr(argv[i + prog_index], "&&") || strstr(argv[i + prog_index], "||")) { 1478 if (strstr(argv[i + prog_index], "&&") || strstr(argv[i + prog_index], "||")) {
1476 sprintf(ptr1, "%s ", argv[i + prog_index]); 1479 sprintf(ptr1, "%s ", argv[i + prog_index]);
1477 } 1480 }
1481 else if (arg_command){
1482 sprintf(ptr1, "%s ", argv[i + prog_index]);
1483 }
1478 else { 1484 else {
1479 sprintf(ptr1, "\"%s\" ", argv[i + prog_index]); 1485 sprintf(ptr1, "\"%s\" ", argv[i + prog_index]);
1480 } 1486 }