mirror of
https://git.savannah.gnu.org/git/emacs.git
synced 2024-11-24 07:20:37 +00:00
* make-path.c (touchy_mkdir): Remove debugging output.
This commit is contained in:
parent
ecc798b0dc
commit
4aa1632a5f
@ -37,14 +37,12 @@ int touchy_mkdir (path)
|
||||
{
|
||||
struct stat buf;
|
||||
|
||||
fprintf (stderr, "mkdir (\"%s\")\n", path);
|
||||
|
||||
/* If the path already exists and is a directory, return success. */
|
||||
/* If PATH already exists and is a directory, return success. */
|
||||
if (stat (path, &buf) >= 0
|
||||
&& (buf.st_mode & S_IFMT) == S_IFDIR)
|
||||
return 0;
|
||||
|
||||
/* Otherwise, try to make it. If path exists but isn't a directory,
|
||||
/* Otherwise, try to make it. If PATH exists but isn't a directory,
|
||||
this will signal an error. */
|
||||
if (mkdir (path, 0777) < 0)
|
||||
{
|
||||
|
Loading…
Reference in New Issue
Block a user