chiark
/
gitweb
/
~mdw
/
sw-tools
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
9efcd17
)
Some systems have uname(2) return > 0.
1.0.1
author
mdw
<mdw>
Thu, 16 Sep 1999 12:53:46 +0000
(12:53 +0000)
committer
mdw
<mdw>
Thu, 16 Sep 1999 12:53:46 +0000
(12:53 +0000)
src/sw_build.c
patch
|
blob
|
blame
|
history
diff --git
a/src/sw_build.c
b/src/sw_build.c
index 493336388f064573d64e80471c399d1c39f7d276..3ce3f7c91ae95933d7237d069f0de2bcbd51b3c8 100644
(file)
--- a/
src/sw_build.c
+++ b/
src/sw_build.c
@@
-1,6
+1,6
@@
/* -*-c-*-
*
/* -*-c-*-
*
- * $Id: sw_build.c,v 1.
3 1999/09/10 15:27:33
mdw Exp $
+ * $Id: sw_build.c,v 1.
4 1999/09/16 12:53:46
mdw Exp $
*
* Management of build processes
*
*
* Management of build processes
*
@@
-29,6
+29,9
@@
/*----- Revision history --------------------------------------------------*
*
* $Log: sw_build.c,v $
/*----- Revision history --------------------------------------------------*
*
* $Log: sw_build.c,v $
+ * Revision 1.4 1999/09/16 12:53:46 mdw
+ * Some systems have uname(2) return > 0.
+ *
* Revision 1.3 1999/09/10 15:27:33 mdw
* Include `%'-escape substitution.
*
* Revision 1.3 1999/09/10 15:27:33 mdw
* Include `%'-escape substitution.
*
@@
-237,7
+240,7
@@
int sw_run(int argc, char *argv[])
/* --- Fill in the hostname --- */
/* --- Fill in the hostname --- */
- if (uname(&u))
+ if (uname(&u)
< 0
)
strcpy(u.nodename, "<unknown>");
/* --- If necessary, set up the output @argv@ array --- */
strcpy(u.nodename, "<unknown>");
/* --- If necessary, set up the output @argv@ array --- */
@@
-552,7
+555,7
@@
void swrsh_build(sw_remote *r, char *argv[], char *env[])
char **p;
struct utsname u;
char **p;
struct utsname u;
- if (uname(&u))
+ if (uname(&u)
< 0
)
swdie(r, 1, "couldn't get hostname: %s", strerror(errno));
if (logfd < 0)
swdie(r, 1, "couldn't open `.build-log' file: %s", strerror(errno));
swdie(r, 1, "couldn't get hostname: %s", strerror(errno));
if (logfd < 0)
swdie(r, 1, "couldn't open `.build-log' file: %s", strerror(errno));