Date: Mon, 13 Apr 1998 21:33:53 +0300 (EEST) From: Ruslan Ermilov <ru@ucb.crimea.ua> To: FreeBSD-gnats-submit@FreeBSD.ORG Subject: bin/6290: small patch for leave(1) Message-ID: <199804131833.VAA16631@relay.ucb.crimea.ua>
next in thread | raw e-mail | index | archive | help
>Number: 6290 >Category: bin >Synopsis: small patch for leave(1) >Confidential: no >Severity: non-critical >Priority: low >Responsible: freebsd-bugs >State: open >Quarter: >Keywords: >Date-Required: >Class: change-request >Submitter-Id: current-users >Arrival-Date: Mon Apr 13 11:40:01 PDT 1998 >Last-Modified: >Originator: Ruslan Ermilov >Organization: >Release: FreeBSD 2.2.6-STABLE i386 >Environment: -stable, -current >Description: Running leave with +0000 or +0001 makes it sleep (u_int)(seconds-2) seconds. >How-To-Repeat: >Fix: This patch for both -stable and -current: Index: leave.c =================================================================== RCS file: /usr/FreeBSD-CVS/src/usr.bin/leave/leave.c,v retrieving revision 1.1.1.1.8.2 diff -u -r1.1.1.1.8.2 leave.c --- leave.c 1998/01/24 14:30:01 1.1.1.1.8.2 +++ leave.c 1998/04/13 18:26:04 @@ -152,7 +152,8 @@ exit(0); } sleep((u_int)2); /* let parent print set message */ - secs -= 2; + if (secs >= 2) + secs -= 2; /* * if write fails, we've lost the terminal through someone else >Audit-Trail: >Unformatted: To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-bugs" in the body of the message
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?199804131833.VAA16631>