- Timestamp:
- 04/25/06 21:54:07 (3 years ago)
- Files:
-
- 1 modified
-
releases/openct-0.6.7/src/ifd/ifdproxy.c (modified) (4 diffs)
Legend:
- Unmodified
- Added
- Removed
-
releases/openct-0.6.7/src/ifd/ifdproxy.c
r850 r869 124 124 125 125 if (opt_chroot) { 126 if (ch root(opt_chroot) < 0 || chdir("/") < 0) {126 if (chdir("/") < 0 || chroot(opt_chroot) < 0) { 127 127 ct_error("chroot(%s) failed: %m", opt_chroot); 128 128 exit(1); … … 258 258 ct_error("Failed to list exported devices: %s", 259 259 ct_strerror(rc)); 260 ria_free(clnt); 260 261 return 1; 261 262 } … … 264 265 if (count == 0) { 265 266 printf("No exported devices\n"); 267 ria_free(clnt); 266 268 return 0; 267 269 } … … 273 275 } 274 276 277 ria_free(clnt); 275 278 return 0; 276 279 }
