version 1.90, 2013/12/23 14:58:16 |
version 1.91, 2014/03/14 10:02:52 |
|
|
|
|
/* Check if file exists; write checks done later */ |
/* Check if file exists; write checks done later */ |
if (stat(adjfname, &statbuf) == 0) { |
if (stat(adjfname, &statbuf) == 0) { |
|
if (S_ISDIR(statbuf.st_mode)) { |
|
dobeep(); |
|
ewprintf("%s is a directory", adjfname); |
|
return (FALSE); |
|
} |
snprintf(tmp, sizeof(tmp), "File `%s' exists; overwrite", |
snprintf(tmp, sizeof(tmp), "File `%s' exists; overwrite", |
adjfname); |
adjfname); |
if ((s = eyorn(tmp)) != TRUE) |
if ((s = eyorn(tmp)) != TRUE) |