diff options
author | jonb <none@none> | 2006-02-17 10:51:31 -0800 |
---|---|---|
committer | jonb <none@none> | 2006-02-17 10:51:31 -0800 |
commit | 51223f1870532b39bc1f6770c7bfa1ee814957f9 (patch) | |
tree | 11a145b7e44df72e5b5e1ce0a27fd6c1485db92a | |
parent | 2d84dfe88bfb9c12d1b4d2216c32b5a8b1fb56ae (diff) | |
download | illumos-joyent-51223f1870532b39bc1f6770c7bfa1ee814957f9.tar.gz |
6284623 ps -z command truncates zonename to 29 characters
-rw-r--r-- | usr/src/cmd/ps/ps.c | 17 |
1 files changed, 11 insertions, 6 deletions
diff --git a/usr/src/cmd/ps/ps.c b/usr/src/cmd/ps/ps.c index 4dbfc09de9..1f769a308d 100644 --- a/usr/src/cmd/ps/ps.c +++ b/usr/src/cmd/ps/ps.c @@ -2,9 +2,8 @@ * CDDL HEADER START * * The contents of this file are subject to the terms of the - * Common Development and Distribution License, Version 1.0 only - * (the "License"). You may not use this file except in compliance - * with the License. + * Common Development and Distribution License (the "License"). + * You may not use this file except in compliance with the License. * * You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE * or http://www.opensolaris.org/os/licensing. @@ -19,15 +18,15 @@ * * CDDL HEADER END */ + /* - * Copyright 2005 Sun Microsystems, Inc. All rights reserved. + * Copyright 2006 Sun Microsystems, Inc. All rights reserved. * Use is subject to license terms. */ /* Copyright (c) 1984, 1986, 1987, 1988, 1989 AT&T */ /* All Rights Reserved */ - #pragma ident "%Z%%M% %I% %E% SMI" /* @@ -67,7 +66,13 @@ #define NTTYS 20 /* initial size of table for -t option */ #define SIZ 30 /* initial size of tables for -p, -s, -g, and -z */ -#define ARGSIZ 30 /* size of buffer holding args for -t, -p, -u options */ + +/* + * Size of buffer holding args for t, p, s, g, u, U, G, z options. + * Set to ZONENAME_MAX, the minimum value needed to allow any + * zone to be specified. + */ +#define ARGSIZ ZONENAME_MAX #define MAXUGNAME 10 /* max chars in a user/group name or printed u/g id */ |