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
e7c7295c
Commit
e7c7295c
authored
May 24, 1993
by
Jim Blandy
Browse files
* fileio.c (Ffile_writable_p): Pass XSTRING (foo)->data to
ro_fsys, not XSTRING (foo).
parent
9696f58b
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
+2
-2
src/fileio.c
src/fileio.c
+2
-2
No files found.
src/fileio.c
View file @
e7c7295c
...
...
@@ -2112,7 +2112,7 @@ DEFUN ("file-writable-p", Ffile_writable_p, Sfile_writable_p, 1, 1, 0,
if
(
access
(
XSTRING
(
abspath
)
->
data
,
0
)
>=
0
)
return
((
access
(
XSTRING
(
abspath
)
->
data
,
2
)
>=
0
&&
!
ro_fsys
(
XSTRING
(
abspath
)))
&&
!
ro_fsys
(
(
char
*
)
XSTRING
(
abspath
)
->
data
))
?
Qt
:
Qnil
);
dir
=
Ffile_name_directory
(
abspath
);
#ifdef VMS
...
...
@@ -2120,7 +2120,7 @@ DEFUN ("file-writable-p", Ffile_writable_p, Sfile_writable_p, 1, 1, 0,
dir
=
Fdirectory_file_name
(
dir
);
#endif
/* VMS */
return
((
access
(
!
NILP
(
dir
)
?
(
char
*
)
XSTRING
(
dir
)
->
data
:
""
,
2
)
>=
0
&&
!
ro_fsys
((
char
*
)
XSTRING
(
dir
)))
&&
!
ro_fsys
((
char
*
)
XSTRING
(
dir
)
->
data
))
?
Qt
:
Qnil
);
}
...
...
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