summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: daaa7a8)
raw | patch | inline | side by side (parent: daaa7a8)
author | oetiker <oetiker@a5681a0c-68f1-0310-ab6d-d61299d08faa> | |
Thu, 28 Aug 2008 05:52:39 +0000 (05:52 +0000) | ||
committer | oetiker <oetiker@a5681a0c-68f1-0310-ab6d-d61299d08faa> | |
Thu, 28 Aug 2008 05:52:39 +0000 (05:52 +0000) |
program/src/rrd_tool.c | patch | blob | history |
diff --git a/program/src/rrd_tool.c b/program/src/rrd_tool.c
index 85269f09afd6bbcbbcd43e61f21a6141d1fbe4d7..dfd9890ff2157ac9b333eeb6b664fbc3787b66a5 100644 (file)
--- a/program/src/rrd_tool.c
+++ b/program/src/rrd_tool.c
== 0 ){
#ifdef HAVE_CHROOT
- chroot(argv[2]);
- if (errno!=0){
+ if (chroot(argv[2]) != 0){
fprintf(stderr,"ERROR: can't change root to '%s' errno=%d\n",
argv[2],errno);
exit(errno);
}
}
if (strcmp(firstdir,"")){
- chdir(firstdir);
- if (errno!=0){
+ if (chdir(firstdir)!=0){
fprintf(stderr,"ERROR: %s\n",rrd_strerror(errno));
exit(errno);
}
return(1);
}
#endif
- chdir(argv[2]);
- if (errno!=0){
+ if (chdir(argv[2]) != 0){
printf("ERROR: %s\n",rrd_strerror(errno));
return(1);
}
return(1);
}
#endif
- mkdir(argv[2],0777);
- if (errno!=0){
+ if (mkdir(argv[2],0777) != 0){
printf("ERROR: %s\n",rrd_strerror(errno));
return(1);
}