Commit 8d60ea1
authored
install: -o0 and -g0 ignored (briandfoy#984)
* Include options -o and -g in the empty-string validation previously added for option -m
* Generally uid 0 means "root user" on unix, and -o 0 could be given to explicitly install files as this user
* The call to chown() was being ignored
%perl mkdir d0 # after patch, as non-root user
%perl install -o0 file d0
install: chown 0.1000 d0/file: Operation not permitted
%perl install -g0 ar d0
install: chown 1000.0 d0/ar: Operation not permitted1 parent 8fc4b57 commit 8d60ea1
1 file changed
+10
-6
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
54 | 54 | | |
55 | 55 | | |
56 | 56 | | |
57 | | - | |
58 | | - | |
59 | | - | |
| 57 | + | |
| 58 | + | |
| 59 | + | |
| 60 | + | |
| 61 | + | |
60 | 62 | | |
61 | 63 | | |
62 | 64 | | |
| |||
103 | 105 | | |
104 | 106 | | |
105 | 107 | | |
106 | | - | |
| 108 | + | |
107 | 109 | | |
108 | | - | |
109 | | - | |
| 110 | + | |
| 111 | + | |
| 112 | + | |
| 113 | + | |
110 | 114 | | |
111 | 115 | | |
112 | 116 | | |
| |||
0 commit comments