summary |
shortlog |
log |
commit | commitdiff |
tree
raw |
patch |
inline | side by side (from parent 1:
83fe8f3)
Published in <sxsr8yy1dk6.fsf@florida.arsdigita.de>.
+2001-04-12 Hrvoje Niksic <hniksic@arsdigita.com>
+
+ * ftp-ls.c (ftp_parse_unix_ls): Use octal constants for
+ permissions. A compiler that doesn't accept octal constants is
+ seriously broken and shouldn't be used -- octal constants were
+ present in K&R C!
+
2001-01-20 Karl Eichwalder <ke@suse.de>
* Makefile.in: Provide and use DESTDIR according to the Coding
2001-01-20 Karl Eichwalder <ke@suse.de>
* Makefile.in: Provide and use DESTDIR according to the Coding
switch (cur.type)
{
case FT_PLAINFILE:
switch (cur.type)
{
case FT_PLAINFILE:
break;
case FT_DIRECTORY:
break;
case FT_DIRECTORY:
+ /*cur.perms = 1023;*/ /* #### What is this? --hniksic */
+ cur.perms = 0644;
- DEBUGP (("implicite perms %0o; ", cur.perms));
+ DEBUGP (("implicit perms %0o; ", cur.perms));
{
cur.type = FT_DIRECTORY;
cur.size = 0;
{
cur.type = FT_DIRECTORY;
cur.size = 0;
- cur.perms = 493; /* my gcc does not like 0755 ?? */
DEBUGP(("Directory\n"));
}
else
{
cur.type = FT_PLAINFILE;
cur.size = atoi(tok);
DEBUGP(("Directory\n"));
}
else
{
cur.type = FT_PLAINFILE;
cur.size = atoi(tok);
- cur.perms = 420; /* 0664 octal */
DEBUGP(("File, size %ld bytes\n", cur.size));
}
DEBUGP(("File, size %ld bytes\n", cur.size));
}