diff options
-rw-r--r-- | source4/client/client.c | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/source4/client/client.c b/source4/client/client.c index dc2aed7f55..d9a8aa7229 100644 --- a/source4/client/client.c +++ b/source4/client/client.c @@ -2210,12 +2210,14 @@ static int cmd_reput(void) */ static const char *share_type_str(uint32 type) { - switch (type & 0x3) { - case 0: + switch (type & 0xF) { + case STYPE_DISKTREE: return "Disk"; - case 1: + case STYPE_PRINTQ: return "Printer"; - case 3: + case STYPE_DEVICE: + return "Device"; + case STYPE_IPC: return "IPC"; default: return "Unknown"; |