Merge remote-tracking branch 'juped/pier-exists-check' into test

This commit is contained in:
Raymond Pasco 2015-10-01 13:24:27 -04:00
commit 567f6d067f

View File

@ -322,6 +322,14 @@ main(c3_i argc,
return 1;
}
if ( c3y == u3_Host.ops_u.nuu ) {
struct stat s;
if ( !stat(u3_Host.dir_c, &s) ) {
fprintf(stderr, "used -c but %s already exists\n", u3_Host.dir_c);
exit(1);
}
}
u3_ve_sysopt();
printf("~\n");