summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRoland McGrath <roland@gnu.org>2002-05-13 22:32:41 +0000
committerRoland McGrath <roland@gnu.org>2002-05-13 22:32:41 +0000
commit0246ed28b5beaac2f614ed3780501d684476f75b (patch)
tree90afe50e9d014c4c833ca48acad668945161a8b0
parentd86c77d174c438ff8242112483face18ed11fc25 (diff)
2002-05-13 Roland McGrath <roland@frob.com>
* dir.c (ftpfs_refresh_node): Set NODE->nn_translated appropriately.
-rw-r--r--ftpfs/dir.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/ftpfs/dir.c b/ftpfs/dir.c
index 6ae5facc..3b0af5ba 100644
--- a/ftpfs/dir.c
+++ b/ftpfs/dir.c
@@ -1,7 +1,7 @@
/* Directory operations
- Copyright (C) 1997, 1998 Free Software Foundation, Inc.
- Written by Miles Bader <miles@gnu.ai.mit.edu>
+ Copyright (C) 1997,98,2002 Free Software Foundation, Inc.
+ Written by Miles Bader <miles@gnu.org>
This file is part of the GNU Hurd.
The GNU Hurd is free software; you can redistribute it and/or
@@ -539,6 +539,7 @@ ftpfs_refresh_node (struct node *node)
ccache_invalidate (nn->contents);
node->nn_stat = entry->stat;
+ node->nn_translated = S_ISLNK (entry->stat.st_mode) ? S_IFLNK : 0;
if (!nn->dir && S_ISDIR (entry->stat.st_mode))
ftpfs_dir_create (nn->fs, node, nn->rmt_path, &nn->dir);