File: 17_no_pledge.diff

package info (click to toggle)
csh 20240808-4
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 1,324 kB
  • sloc: ansic: 11,699; makefile: 60; sh: 16
file content (15 lines) | stat: -rw-r--r-- 386 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
--- a/csh.c
+++ b/csh.c
@@ -227,12 +227,6 @@
     if (loginsh)
 	(void) time(&chktim);
 
-    if (pledge("stdio rpath wpath cpath fattr getpw proc exec tty",
-	NULL) == -1) {
-	    perror("pledge");
-	    exit(1);
-    }
-
     /*
      * Move the descriptors to safe places. The variable didfds is 0 while we
      * have only FSH* to work with. When didfds is true, we have 0,1,2 and