Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Open sidebar
emacs
emacs
Commits
4aa1632a
Commit
4aa1632a
authored
Dec 06, 1992
by
Jim Blandy
Browse files
* make-path.c (touchy_mkdir): Remove debugging output.
parent
ecc798b0
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
4 deletions
+2
-4
lib-src/make-path.c
lib-src/make-path.c
+2
-4
No files found.
lib-src/make-path.c
View file @
4aa1632a
...
...
@@ -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
)
{
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment