summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRoland McGrath <roland@gnu.org>2002-05-12 01:59:14 +0000
committerRoland McGrath <roland@gnu.org>2002-05-12 01:59:14 +0000
commit675b8752869b5cd47a66b01914cbc2aa28f63774 (patch)
treef1fbad3fd21de05b6bce7cb4e4f56d1f31a9acc7
parentae6eaecebe071dda193caa8801bdd50d496bf9ab (diff)
2002-05-11 Roland McGrath <roland@frob.com>
* trans-callback.c (_diskfs_translator_callback1_fn): Add an assert that netfs_get_translator not fail with EOPNOTSUPP.
-rw-r--r--libdiskfs/trans-callback.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/libdiskfs/trans-callback.c b/libdiskfs/trans-callback.c
index 0a0bc450..283b184f 100644
--- a/libdiskfs/trans-callback.c
+++ b/libdiskfs/trans-callback.c
@@ -36,7 +36,10 @@ _diskfs_translator_callback1_fn (void *cookie1, void *cookie2,
err = diskfs_get_translator (np, argz, (u_int *) argz_len);
if (err)
- return err;
+ {
+ assert (err != EOPNOTSUPP);
+ return err;
+ }
*uid = np->dn_stat.st_uid;
*gid = np->dn_stat.st_gid;