Tue 24 Nov 12:43:20 1998 Peter Kleiweg <kleiweg@let.rug.nl>

* vfs/vfs.c (vfs_parse_ls_lga): ignore trailing + in permission string
which indicate a file with extented attributes (ACL)


Wed Nov 25 22:16:19 1998  Norbert Warmuth  <nwarmuth@privat.circular.de>

* src/cmd.c (dirsizes_cmd): Quote characters with a special meaning
when passing it to du.
This commit is contained in:
Norbert Warmuth 1998-11-25 23:34:00 +00:00
parent beff48b8e0
commit 414c7569f2
4 changed files with 20 additions and 2 deletions

View File

@ -1,3 +1,8 @@
Wed Nov 25 22:16:19 1998 Norbert Warmuth <nwarmuth@privat.circular.de>
* cmd.c (dirsizes_cmd): Quote characters with a special meaning
when passing it to du.
1998-11-23 Federico Mena Quintero <federico@nuclecu.unam.mx>
* dlg.c (dlg_try_hotkey): Removed unused declaration of input_event.

View File

@ -1364,7 +1364,11 @@ void dirsizes_cmd (void)
for (i = 0; i < panel->count; i++)
if (S_ISDIR (panel->dir.list [i].buf.st_mode) &&
strcmp (panel->dir.list [i].fname, "..")) {
strcpy (p, panel->dir.list [i].fname);
/* The quotes will be removed from the shell when invoking
du, i.e. no need to remove quotes when reading the
directory sizes from du. */
strcpy (p, r = name_quote (panel->dir.list [i].fname, 0));
free (r);
p = strchr (p, 0);
*(p++) = ' ';
}

View File

@ -1,3 +1,8 @@
Tue 24 Nov 12:43:20 1998 Peter Kleiweg <kleiweg@let.rug.nl>
* vfs.c (vfs_parse_ls_lga): ignore trailing + in permission string
which indicate a file with extented attributes (ACL)
Mon Nov 23 21:19:43 1998 Norbert Warmuth <nwarmuth@privat.circular.de>
* ftpfs.c (resolve_symlink_with_ls_options): that's resolve_symlinks

View File

@ -1499,10 +1499,14 @@ vfs_parse_ls_lga (char *p, struct stat *s, char **filename, char **linkname)
s->st_mode |= (S_IRUSR | S_IRGRP | S_IROTH | S_IWUSR);
p += 9;
} else {
if ((i = vfs_parse_filemode(p)) ==-1)
if ((i = vfs_parse_filemode(p)) == -1)
goto error;
s->st_mode |= i;
p += 9;
/* This is for an extra ACL attribute (HP-UX) */
if (*p == '+')
p++;
}
free(p_copy);