projects
/
pspp
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Fix problem where entry strings got mangled
[pspp]
/
src
/
data
/
file-name.c
diff --git
a/src/data/file-name.c
b/src/data/file-name.c
index 2fd79428e2409fc850e6c644503ad8e6e1778cc7..86c8e17e467d45c3cf7edac34166b20357cba62f 100644
(file)
--- a/
src/data/file-name.c
+++ b/
src/data/file-name.c
@@
-269,7
+269,7
@@
fn_open (const char *fn, const char *mode)
#if HAVE_POPEN
if (fn[0] == '|')
{
#if HAVE_POPEN
if (fn[0] == '|')
{
- if (get_safer_mode ())
+ if (
settings_
get_safer_mode ())
return safety_violation (fn);
return popen (&fn[1], mode[0] == 'r' ? "r" : "w");
return safety_violation (fn);
return popen (&fn[1], mode[0] == 'r' ? "r" : "w");
@@
-279,7
+279,7
@@
fn_open (const char *fn, const char *mode)
char *s;
FILE *f;
char *s;
FILE *f;
- if (get_safer_mode ())
+ if (
settings_
get_safer_mode ())
return safety_violation (fn);
s = xmalloca (strlen (fn));
return safety_violation (fn);
s = xmalloca (strlen (fn));
@@
-411,7
+411,7
@@
fn_get_identity (const char *file_name)
identity->device = 0;
identity->inode = 0;
identity->name = xstrdup (ok ? cname : file_name);
identity->device = 0;
identity->inode = 0;
identity->name = xstrdup (ok ? cname : file_name);
- str_lowercase (identity->
file_
name);
+ str_lowercase (identity->name);
#endif /* Windows */
return identity;
#endif /* Windows */
return identity;