summaryrefslogtreecommitdiff
path: root/usr/src/tools/install.bin/install.bin.c
diff options
context:
space:
mode:
authorJerry Jelinek <jerry.jelinek@joyent.com>2019-01-10 13:03:39 +0000
committerJerry Jelinek <jerry.jelinek@joyent.com>2019-01-10 13:03:39 +0000
commit06f472df368b16d931bbd0cc036393e19f036faa (patch)
tree6ac8f350b388962e4e5280f620e2c2b0874506e3 /usr/src/tools/install.bin/install.bin.c
parent91561fc95663609a869e3d0a979f9465609cc40a (diff)
parent9b40c3052b9b0d91120c568df0c5211c131c8da1 (diff)
downloadillumos-joyent-06f472df368b16d931bbd0cc036393e19f036faa.tar.gz
[illumos-gate merge]
commit 9b40c3052b9b0d91120c568df0c5211c131c8da1 10201 prototypes: happy new 2019 year commit a103f15bc0089ffbdb0e211871d97b6b79f59fa1 10185 loader: add sha1 hash calculation commit 8d2ce326a8ec4271f68dfa69691885d8219c9bb7 10184 loader: framebuffer command should report usage on bad command commit 1fe853a05a457dfa95ddc2f2742c2421558a7c30 10171 biosdisk: use int13h ah=08 and ah=15 to count the floppy devices commit b6b206fc7fb36f7b13b01acf70ed6e676e405998 10077 usr/src/uts/ Makefile changes for smatch commit dc5e7685b131559c0b7c622baee25a9a0ae50ada 10076 make usr/src/test smatch clean commit 93b8872871607b3d21317283c1230b2a4a00920b 10075 make usr/src/tools smatch clean commit 64f9afd1fd6b5f36ed2c633d603a3b551da6f3d4 10066 loader: Add isoboot(5) for booting BIOS systems from HDDs containing ISO images. commit 3273f292544925d8d86f8e40935d5360aa609ef4 10054 loader: move 16KB BSS buffer from pxe to bio and use it with biosdisk commit f5037cd0e0544bd22e4547ec8656b0ec49615f5d 10175 Organize tcp(7P) into subsections 6109 tcp(7P) should mention that socket options are in <netinet/tcp.h>
Diffstat (limited to 'usr/src/tools/install.bin/install.bin.c')
-rw-r--r--usr/src/tools/install.bin/install.bin.c7
1 files changed, 5 insertions, 2 deletions
diff --git a/usr/src/tools/install.bin/install.bin.c b/usr/src/tools/install.bin/install.bin.c
index 40234e5c01..32b4cffe57 100644
--- a/usr/src/tools/install.bin/install.bin.c
+++ b/usr/src/tools/install.bin/install.bin.c
@@ -22,6 +22,9 @@
* Copyright (c) 1999, 2010, Oracle and/or its affiliates. All rights reserved.
*/
+/*
+ * Copyright (c) 2018, Joyent, Inc.
+ */
#include <stdio.h>
#include <stdlib.h>
@@ -103,13 +106,13 @@ chown_file(const char *file, const char *group, const char *owner)
if (group) {
grp = stdfind(group, groupnames);
- if (grp < 0)
+ if (grp == (gid_t)-1)
(void) fprintf(stderr, "unknown group(%s)\n", group);
}
if (owner) {
own = stdfind(owner, usernames);
- if (own < 0) {
+ if (own == (uid_t)-1) {
(void) fprintf(stderr, "unknown owner(%s)\n", owner);
exit(1);
}