summaryrefslogtreecommitdiff
path: root/libnetfs
diff options
context:
space:
mode:
authorRoland McGrath <roland@gnu.org>2002-05-12 01:59:05 +0000
committerRoland McGrath <roland@gnu.org>2002-05-12 01:59:05 +0000
commitae6eaecebe071dda193caa8801bdd50d496bf9ab (patch)
treea2df3ce952d8bd052b4a70d4b4cc53a648bb0285 /libnetfs
parent863a72f5cff5492fbd301ba763bdf945b7d61a99 (diff)
2002-05-11 Roland McGrath <roland@frob.com>
* trans-callback.c (_netfs_translator_callback1_fn): Add an assert that netfs_get_translator not fail with EOPNOTSUPP.
Diffstat (limited to 'libnetfs')
-rw-r--r--libnetfs/trans-callback.c7
1 files changed, 5 insertions, 2 deletions
diff --git a/libnetfs/trans-callback.c b/libnetfs/trans-callback.c
index fc844c30..4dec162e 100644
--- a/libnetfs/trans-callback.c
+++ b/libnetfs/trans-callback.c
@@ -1,6 +1,6 @@
/* Callback functions for starting translators
- Copyright (C) 1995,96,97,2001 Free Software Foundation, Inc.
+ Copyright (C) 1995,96,97,2001,02 Free Software Foundation, Inc.
This file is part of the GNU Hurd.
@@ -36,7 +36,10 @@ _netfs_translator_callback1_fn (void *cookie1, void *cookie2,
err = netfs_get_translator (np, argz, argz_len);
if (err)
- return err;
+ {
+ assert (err != EOPNOTSUPP);
+ return err;
+ }
*uid = np->nn_stat.st_uid;
*gid = np->nn_stat.st_gid;