clfs-1.2
clfs-2.1
clfs-3.0.0-systemd
clfs-3.0.0-sysvinit
systemd
sysvinit
Last change
on this file since 307e0836 was 7f65c0e, checked in by Jim Gifford <clfs@…>, 19 years ago |
r625@server (orig r623): jim | 2005-10-31 12:43:24 -0800
Final Move
|
-
Property mode
set to
100644
|
File size:
1003 bytes
|
Rev | Line | |
---|
[617118d] | 1 | Submitted By: Matthew Burgess
|
---|
| 2 | Date: 2004-06-17
|
---|
| 3 | Initial Package Version: 4.1
|
---|
| 4 | Upstream Status: Submitted and accepted upstream
|
---|
| 5 | Origin: Bruce Dubbs
|
---|
| 6 | (http://www.linuxfromscratch.org/pipermail/lfs-dev/2004-June/046773.html)
|
---|
| 7 | Description: When using the in-place function, sed 4.1 changes
|
---|
| 8 | permissions. Specifically, when using sed on a bash
|
---|
| 9 | script with permissions 755, the updated file has
|
---|
| 10 | permissions 600.
|
---|
| 11 |
|
---|
| 12 | diff -Naur sed-4.1.orig/sed/execute.c sed-4.1/sed/execute.c
|
---|
| 13 | --- sed-4.1.orig/sed/execute.c 2004-03-13 09:30:39.000000000 +0000
|
---|
| 14 | +++ sed-4.1/sed/execute.c 2004-06-17 20:05:20.000000000 +0000
|
---|
| 15 | @@ -668,6 +668,7 @@
|
---|
| 16 |
|
---|
| 17 | input->in_file_name = name;
|
---|
| 18 | output_file.fp = ck_mkstemp (&input->out_file_name, tmpdir, "sed");
|
---|
| 19 | + output_fd = fileno(output_file.fp);
|
---|
| 20 | free (tmpdir);
|
---|
| 21 |
|
---|
| 22 | fstat (fileno (input->fp), &st);
|
---|
Note:
See
TracBrowser
for help on using the repository browser.