diff options
| author | Jim Blandy | 1993-05-24 15:22:47 +0000 |
|---|---|---|
| committer | Jim Blandy | 1993-05-24 15:22:47 +0000 |
| commit | e7c7295c919d939c9b21adeecff89336318c6578 (patch) | |
| tree | 0e2aa98ffb0caf8af5bbf40f8eea0d79db3a8862 /src | |
| parent | 9696f58be781597a4ac17ff6051fdba4da0200f6 (diff) | |
| download | emacs-e7c7295c919d939c9b21adeecff89336318c6578.tar.gz emacs-e7c7295c919d939c9b21adeecff89336318c6578.zip | |
* fileio.c (Ffile_writable_p): Pass XSTRING (foo)->data to
ro_fsys, not XSTRING (foo).
Diffstat (limited to 'src')
| -rw-r--r-- | src/fileio.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/fileio.c b/src/fileio.c index 8987142e2ce..da591b525b1 100644 --- a/src/fileio.c +++ b/src/fileio.c | |||
| @@ -2112,7 +2112,7 @@ DEFUN ("file-writable-p", Ffile_writable_p, Sfile_writable_p, 1, 1, 0, | |||
| 2112 | 2112 | ||
| 2113 | if (access (XSTRING (abspath)->data, 0) >= 0) | 2113 | if (access (XSTRING (abspath)->data, 0) >= 0) |
| 2114 | return ((access (XSTRING (abspath)->data, 2) >= 0 | 2114 | return ((access (XSTRING (abspath)->data, 2) >= 0 |
| 2115 | && ! ro_fsys (XSTRING (abspath))) | 2115 | && ! ro_fsys ((char *) XSTRING (abspath)->data)) |
| 2116 | ? Qt : Qnil); | 2116 | ? Qt : Qnil); |
| 2117 | dir = Ffile_name_directory (abspath); | 2117 | dir = Ffile_name_directory (abspath); |
| 2118 | #ifdef VMS | 2118 | #ifdef VMS |
| @@ -2120,7 +2120,7 @@ DEFUN ("file-writable-p", Ffile_writable_p, Sfile_writable_p, 1, 1, 0, | |||
| 2120 | dir = Fdirectory_file_name (dir); | 2120 | dir = Fdirectory_file_name (dir); |
| 2121 | #endif /* VMS */ | 2121 | #endif /* VMS */ |
| 2122 | return ((access (!NILP (dir) ? (char *) XSTRING (dir)->data : "", 2) >= 0 | 2122 | return ((access (!NILP (dir) ? (char *) XSTRING (dir)->data : "", 2) >= 0 |
| 2123 | && ! ro_fsys ((char *) XSTRING (dir))) | 2123 | && ! ro_fsys ((char *) XSTRING (dir)->data)) |
| 2124 | ? Qt : Qnil); | 2124 | ? Qt : Qnil); |
| 2125 | } | 2125 | } |
| 2126 | 2126 | ||