From 3010f05b8e7c41a103780aa9306659706e47f207 Mon Sep 17 00:00:00 2001 From: dp Date: Tue, 28 Feb 2006 16:15:15 -0800 Subject: PSARC 2006/134 logadm(1m) $zonename keyword 4823583 crontab command prints incorrect usage 6352485 RFE: add $zonename to the list of macros supported by logadm Contributed by Richard Lowe . --- usr/src/cmd/cron/crontab.c | 13 ++++++++----- 1 file changed, 8 insertions(+), 5 deletions(-) (limited to 'usr/src/cmd/cron') diff --git a/usr/src/cmd/cron/crontab.c b/usr/src/cmd/cron/crontab.c index 9638fab398..221e084fe8 100644 --- a/usr/src/cmd/cron/crontab.c +++ b/usr/src/cmd/cron/crontab.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. @@ -20,7 +19,7 @@ * 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 */ @@ -59,7 +58,11 @@ "because your login shell isn't /usr/bin/sh, you can't use cron." #define WARNSHELL "warning: commands will be executed using /usr/bin/sh\n" #define BADUSAGE \ - "proper usage is: \n crontab [file | -e | -l | -r ] [user]" + "usage:\n" \ + "\tcrontab [file]\n" \ + "\tcrontab -e [username]\n" \ + "\tcrontab -l [username]\n" \ + "\tcrontab -r [username]" #define INVALIDUSER "you are not a valid user (no entry in /etc/passwd)." #define NOTALLOWED "you are not authorized to use cron. Sorry." #define NOTROOT \ -- cgit v1.2.3