From 0246ed28b5beaac2f614ed3780501d684476f75b Mon Sep 17 00:00:00 2001 From: Roland McGrath Date: Mon, 13 May 2002 22:32:41 +0000 Subject: 2002-05-13 Roland McGrath * dir.c (ftpfs_refresh_node): Set NODE->nn_translated appropriately. --- ftpfs/dir.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'ftpfs') 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 + Copyright (C) 1997,98,2002 Free Software Foundation, Inc. + Written by Miles Bader 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); -- cgit v1.2.3