projects
/
pspp-builds.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Delete trailing whitespace at end of lines.
[pspp-builds.git]
/
src
/
language
/
utilities
/
permissions.c
diff --git
a/src/language/utilities/permissions.c
b/src/language/utilities/permissions.c
index b7b0c064a0d67e69a8cee02a6ec734ef45b65720..895d2e379eaea0ff95d91da3004d3e75345ca31f 100644
(file)
--- a/
src/language/utilities/permissions.c
+++ b/
src/language/utilities/permissions.c
@@
-54,7
+54,7
@@
cmd_permissions (struct lexer *lexer, struct dataset *ds UNUSED)
lex_match (lexer, '/');
lex_match (lexer, '/');
-
+
if ( ! lex_match_id (lexer, "PERMISSIONS"))
goto error;
if ( ! lex_match_id (lexer, "PERMISSIONS"))
goto error;
@@
-62,12
+62,12
@@
cmd_permissions (struct lexer *lexer, struct dataset *ds UNUSED)
if ( lex_match_id (lexer, "READONLY"))
{
if ( lex_match_id (lexer, "READONLY"))
{
- if ( ! change_permissions(fn, PER_RO ) )
+ if ( ! change_permissions(fn, PER_RO ) )
goto error;
}
else if ( lex_match_id (lexer, "WRITEABLE"))
{
goto error;
}
else if ( lex_match_id (lexer, "WRITEABLE"))
{
- if ( ! change_permissions(fn, PER_RW ) )
+ if ( ! change_permissions(fn, PER_RW ) )
goto error;
}
else
goto error;
}
else
@@
-102,7
+102,7
@@
change_permissions(const char *file_name, enum PER per)
}
}
- if ( -1 == stat(file_name, &buf) )
+ if ( -1 == stat(file_name, &buf) )
{
const int errnum = errno;
msg (SE, _("Cannot stat %s: %s"), file_name, strerror(errnum));
{
const int errnum = errno;
msg (SE, _("Cannot stat %s: %s"), file_name, strerror(errnum));