diff options
Diffstat (limited to 'libnetfs/file-get-translator.c')
-rw-r--r-- | libnetfs/file-get-translator.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/libnetfs/file-get-translator.c b/libnetfs/file-get-translator.c index 3108acd7..7edc8fd0 100644 --- a/libnetfs/file-get-translator.c +++ b/libnetfs/file-get-translator.c @@ -1,5 +1,5 @@ /* - Copyright (C) 1996, 1999, 2000 Free Software Foundation, Inc. + Copyright (C) 1996, 1999, 2000, 2008 Free Software Foundation, Inc. Written by Michael I. Bushnell, p/BSG. This file is part of the GNU Hurd. @@ -71,8 +71,8 @@ netfs_S_file_get_translator (struct protid *user, (S_ISCHR (np->nn_stat.st_mode) ? _HURD_CHRDEV : _HURD_BLKDEV), - '\0', (np->nn_stat.st_rdev >> 8) & 0377, - '\0', (np->nn_stat.st_rdev) & 0377); + '\0', major (np->nn_stat.st_rdev), + '\0', minor (np->nn_stat.st_rdev)); if (buflen < 0) err = ENOMEM; else |