diff options
Diffstat (limited to 'editors')
-rw-r--r-- | editors/Config.src | 2 | ||||
-rw-r--r-- | editors/Kbuild.src | 2 | ||||
-rw-r--r-- | editors/sed.c | 2 |
3 files changed, 6 insertions, 0 deletions
diff --git a/editors/Config.src b/editors/Config.src index 6cf21919c..fc824ccd5 100644 --- a/editors/Config.src +++ b/editors/Config.src | |||
@@ -5,6 +5,8 @@ | |||
5 | 5 | ||
6 | menu "Editors" | 6 | menu "Editors" |
7 | 7 | ||
8 | INSERT | ||
9 | |||
8 | config AWK | 10 | config AWK |
9 | bool "awk" | 11 | bool "awk" |
10 | default y | 12 | default y |
diff --git a/editors/Kbuild.src b/editors/Kbuild.src index 76302aa76..9d4b9d053 100644 --- a/editors/Kbuild.src +++ b/editors/Kbuild.src | |||
@@ -5,6 +5,8 @@ | |||
5 | # Licensed under the GPL v2, see the file LICENSE in this tarball. | 5 | # Licensed under the GPL v2, see the file LICENSE in this tarball. |
6 | 6 | ||
7 | lib-y:= | 7 | lib-y:= |
8 | |||
9 | INSERT | ||
8 | lib-$(CONFIG_AWK) += awk.o | 10 | lib-$(CONFIG_AWK) += awk.o |
9 | lib-$(CONFIG_CMP) += cmp.o | 11 | lib-$(CONFIG_CMP) += cmp.o |
10 | lib-$(CONFIG_DIFF) += diff.o | 12 | lib-$(CONFIG_DIFF) += diff.o |
diff --git a/editors/sed.c b/editors/sed.c index a5ef400fc..28f0c7318 100644 --- a/editors/sed.c +++ b/editors/sed.c | |||
@@ -1365,6 +1365,8 @@ int sed_main(int argc UNUSED_PARAM, char **argv) | |||
1365 | 1365 | ||
1366 | /* Set permissions/owner of output file */ | 1366 | /* Set permissions/owner of output file */ |
1367 | fstat(fileno(file), &statbuf); | 1367 | fstat(fileno(file), &statbuf); |
1368 | /* chmod'ing AFTER chown would preserve suid/sgid bits, | ||
1369 | * but GNU sed 4.2.1 does not preserve them either */ | ||
1368 | fchmod(nonstdoutfd, statbuf.st_mode); | 1370 | fchmod(nonstdoutfd, statbuf.st_mode); |
1369 | fchown(nonstdoutfd, statbuf.st_uid, statbuf.st_gid); | 1371 | fchown(nonstdoutfd, statbuf.st_uid, statbuf.st_gid); |
1370 | add_input_file(file); | 1372 | add_input_file(file); |