diff options
| author | Norm Jacobs <Norm.Jacobs@Sun.COM> | 2009-09-03 09:12:16 -0700 |
|---|---|---|
| committer | Norm Jacobs <Norm.Jacobs@Sun.COM> | 2009-09-03 09:12:16 -0700 |
| commit | fbde34ed705bd3e0be54fb73ceb0e689cba71312 (patch) | |
| tree | ebc22ea1487f6b547d969defa6833d0658ae5e27 /usr/src/cmd/svr4pkg/pkgmk | |
| parent | 9aa73b6813b3fd35e78fcc44fd17535e765e504c (diff) | |
| download | illumos-joyent-fbde34ed705bd3e0be54fb73ceb0e689cba71312.tar.gz | |
6450607 pkgmk only sets permission bits when run as root
Diffstat (limited to 'usr/src/cmd/svr4pkg/pkgmk')
| -rw-r--r-- | usr/src/cmd/svr4pkg/pkgmk/main.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/usr/src/cmd/svr4pkg/pkgmk/main.c b/usr/src/cmd/svr4pkg/pkgmk/main.c index d3c6da1f22..0d28960878 100644 --- a/usr/src/cmd/svr4pkg/pkgmk/main.c +++ b/usr/src/cmd/svr4pkg/pkgmk/main.c @@ -777,13 +777,13 @@ outvol(struct cfent **eptlist, unsigned int eptnum, int part, int nparts) * the pkgmap, we fix the attributes here. */ if (*(eptlist[i]->ainfo.owner) != '$' && - *(eptlist[i]->ainfo.group) != '$' && getuid() == 0) { + *(eptlist[i]->ainfo.group) != '$') { /* Clear dangerous bits. */ eptlist[i]->ainfo.mode= (eptlist[i]->ainfo.mode & S_IAMB); /* * Make sure it can be read by the world and written - * by root. + * by the owner. */ eptlist[i]->ainfo.mode |= 0644; if (!strchr("in", eptlist[i]->ftype)) { |
