summaryrefslogtreecommitdiff
path: root/usr/src/cmd
diff options
context:
space:
mode:
Diffstat (limited to 'usr/src/cmd')
-rw-r--r--usr/src/cmd/zonecfg/zonecfg.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/usr/src/cmd/zonecfg/zonecfg.c b/usr/src/cmd/zonecfg/zonecfg.c
index f6aa8678d4..354591185b 100644
--- a/usr/src/cmd/zonecfg/zonecfg.c
+++ b/usr/src/cmd/zonecfg/zonecfg.c
@@ -5933,7 +5933,7 @@ brand_verify(zone_dochandle_t handle)
* Dump the current config information for this zone to a file.
*/
strcpy(xml_file, "/tmp/zonecfg_verify.XXXXXX");
- if (mkstemp(xml_file) == NULL)
+ if (mkstemp(xml_file) == -1)
return (Z_TEMP_FILE);
if ((err = zonecfg_verify_save(handle, xml_file)) != Z_OK) {
(void) unlink(xml_file);