From 4674a5ae805794b65aacab0172298c9a3d43f678 Mon Sep 17 00:00:00 2001 From: Daniel Hokka Zakrisson Date: Tue, 23 Aug 2011 13:18:09 +0200 Subject: [PATCH] umask is not always present --- src/vattribute.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/vattribute.c b/src/vattribute.c index ef4d665..0c98a2e 100644 --- a/src/vattribute.c +++ b/src/vattribute.c @@ -186,12 +186,13 @@ printAttrs(struct Arguments *args) Evc_get_cflags(args->xid, &flags); Evc_get_ccaps(args->xid, &caps); - Evc_get_umask(args->xid, &umask); print_bitfield(1, bcap, "bcapabilities", &caps.bcaps); print_bitfield(1, ccap, "ccapabilities", &caps.ccaps); print_bitfield(1, cflag, "flags", &flags.flagword); - print_bitfield(1, umask, "umask", &umask.umask); + if (vc_get_umask(args->xid, &umask) == 0) { + print_bitfield(1, umask, "umask", &umask.umask); + } return 0; } -- 1.8.1.5