From owner-freebsd-standards@FreeBSD.ORG Sun Sep 17 17:10:26 2006 Return-Path: X-Original-To: freebsd-standards@hub.freebsd.org Delivered-To: freebsd-standards@hub.freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id E482B16A407 for ; Sun, 17 Sep 2006 17:10:26 +0000 (UTC) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (freefall.freebsd.org [216.136.204.21]) by mx1.FreeBSD.org (Postfix) with ESMTP id 50AA943D53 for ; Sun, 17 Sep 2006 17:10:26 +0000 (GMT) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (gnats@localhost [127.0.0.1]) by freefall.freebsd.org (8.13.4/8.13.4) with ESMTP id k8HHAQwu041283 for ; Sun, 17 Sep 2006 17:10:26 GMT (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.13.4/8.13.4/Submit) id k8HHAQP3041282; Sun, 17 Sep 2006 17:10:26 GMT (envelope-from gnats) Resent-Date: Sun, 17 Sep 2006 17:10:26 GMT Resent-Message-Id: <200609171710.k8HHAQP3041282@freefall.freebsd.org> Resent-From: FreeBSD-gnats-submit@FreeBSD.org (GNATS Filer) Resent-To: freebsd-standards@FreeBSD.org Resent-Reply-To: FreeBSD-gnats-submit@FreeBSD.org, Roman Bogorodskiy Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 8C3A016A47C for ; Sun, 17 Sep 2006 17:08:43 +0000 (UTC) (envelope-from novel@FreeBSD.org) Received: from freefall.freebsd.org (freefall.freebsd.org [216.136.204.21]) by mx1.FreeBSD.org (Postfix) with ESMTP id DD15343D88 for ; Sun, 17 Sep 2006 17:08:35 +0000 (GMT) (envelope-from novel@FreeBSD.org) Received: from freefall.freebsd.org (novel@localhost [127.0.0.1]) by freefall.freebsd.org (8.13.4/8.13.4) with ESMTP id k8HH8ZEl041158 for ; Sun, 17 Sep 2006 17:08:35 GMT (envelope-from novel@freefall.freebsd.org) Received: (from novel@localhost) by freefall.freebsd.org (8.13.4/8.13.4/Submit) id k8HH8ZYU041157; Sun, 17 Sep 2006 17:08:35 GMT (envelope-from novel) Message-Id: <200609171708.k8HH8ZYU041157@freefall.freebsd.org> Date: Sun, 17 Sep 2006 17:08:35 GMT From: Roman Bogorodskiy To: FreeBSD-gnats-submit@FreeBSD.org X-Send-Pr-Version: 3.113 Cc: Subject: standards/103331: [ patch ] add '-p' support for jobs sh(1) builtin X-BeenThere: freebsd-standards@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: Roman Bogorodskiy List-Id: Standards compliance List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 17 Sep 2006 17:10:27 -0000 >Number: 103331 >Category: standards >Synopsis: [ patch ] add '-p' support for jobs sh(1) builtin >Confidential: no >Severity: non-critical >Priority: medium >Responsible: freebsd-standards >State: open >Quarter: >Keywords: >Date-Required: >Class: change-request >Submitter-Id: current-users >Arrival-Date: Sun Sep 17 17:10:25 GMT 2006 >Closed-Date: >Last-Modified: >Originator: Roman Bogorodskiy >Release: FreeBSD 6.0-STABLE i386 >Organization: >Environment: >Description: Add '-p' support for sh(1)'s job builtin. References: http://www.opengroup.org/onlinepubs/000095399/utilities/jobs.html PS Maybe it would make sense to rewrite it in a way that it used only one varible for all formats (i.e. introduce format codes) or use one bit-varible instead of one varible per format like it is done now. >How-To-Repeat: >Fix: --- src_bin_sh_jobs_p.diff begins here --- Index: jobs.c =================================================================== RCS file: /home/ncvs/src/bin/sh/jobs.c,v retrieving revision 1.71 diff -u -r1.71 jobs.c --- jobs.c 4 Feb 2006 14:37:50 -0000 1.71 +++ jobs.c 17 Sep 2006 16:39:29 -0000 @@ -98,7 +98,7 @@ STATIC void deljob(struct job *); STATIC struct job *getcurjob(struct job *); #endif -STATIC void showjob(struct job *, pid_t, int, int); +STATIC void showjob(struct job *, pid_t, int, int, int); /* @@ -265,16 +265,19 @@ jobscmd(int argc, char *argv[]) { char *id; - int ch, sformat, lformat; + int ch, sformat, lformat, pformat; optind = optreset = 1; opterr = 0; sformat = lformat = 0; - while ((ch = getopt(argc, argv, "ls")) != -1) { + while ((ch = getopt(argc, argv, "lps")) != -1) { switch (ch) { case 'l': lformat = 1; break; + case 'p': + pformat = 1; + break; case 's': sformat = 1; break; @@ -287,16 +290,16 @@ argv += optind; if (argc == 0) - showjobs(0, sformat, lformat); + showjobs(0, sformat, lformat, pformat); else while ((id = *argv++) != NULL) - showjob(getjob(id), 0, sformat, lformat); + showjob(getjob(id), 0, sformat, lformat, pformat); return (0); } STATIC void -showjob(struct job *jp, pid_t pid, int sformat, int lformat) +showjob(struct job *jp, pid_t pid, int sformat, int lformat, int pformat) { char s[64]; struct procstat *ps; @@ -319,6 +322,10 @@ out1fmt("%d\n", (int)ps->pid); goto skip; } + if (pformat) { + out1fmt("%d\n", (int)getpgid(ps->pid)); + goto skip; + } if (!lformat && ps != jp->ps && pid == 0) goto skip; if (pid != 0 && pid != ps->pid) @@ -388,7 +395,7 @@ */ void -showjobs(int change, int sformat, int lformat) +showjobs(int change, int sformat, int lformat, int pformat) { int jobno; struct job *jp; @@ -404,7 +411,7 @@ } if (change && ! jp->changed) continue; - showjob(jp, 0, sformat, lformat); + showjob(jp, 0, sformat, lformat, pformat); jp->changed = 0; if (jp->state == JOBDONE) { freejob(jp); @@ -992,7 +999,7 @@ out1str(" (core dumped)"); out1c('\n'); } else - showjob(thisjob, pid, 0, 0); + showjob(thisjob, pid, 0, 0, 0); } } else { TRACE(("Not printing status, rootshell=%d, job=%p\n", rootshell, job)); Index: jobs.h =================================================================== RCS file: /home/ncvs/src/bin/sh/jobs.h,v retrieving revision 1.18 diff -u -r1.18 jobs.h --- jobs.h 6 Apr 2004 20:06:51 -0000 1.18 +++ jobs.h 17 Sep 2006 16:39:29 -0000 @@ -84,7 +84,7 @@ int fgcmd(int, char **); int bgcmd(int, char **); int jobscmd(int, char **); -void showjobs(int, int, int); +void showjobs(int, int, int, int); int waitcmd(int, char **); int jobidcmd(int, char **); struct job *makejob(union node *, int); Index: main.c =================================================================== RCS file: /home/ncvs/src/bin/sh/main.c,v retrieving revision 1.28 diff -u -r1.28 main.c --- main.c 2 Apr 2006 18:51:32 -0000 1.28 +++ main.c 17 Sep 2006 16:39:29 -0000 @@ -211,7 +211,7 @@ inter = 0; if (iflag && top) { inter++; - showjobs(1, 0, 0); + showjobs(1, 0, 0, 0); chkmail(0); flushout(&output); } Index: sh.1 =================================================================== RCS file: /home/ncvs/src/bin/sh/sh.1,v retrieving revision 1.122 diff -u -r1.122 sh.1 --- sh.1 29 Jul 2006 09:56:29 -0000 1.122 +++ sh.1 17 Sep 2006 16:39:46 -0000 @@ -1777,7 +1777,7 @@ If the .Ar job argument is omitted, use the current job. -.It Ic jobs Oo Fl ls Oc Op Ar job ... +.It Ic jobs Oo Fl lps Oc Op Ar job ... Print information about the specified jobs, or all jobs if no .Ar job argument is given. @@ -1787,6 +1787,10 @@ .Fl l option is specified, the PID of each job is also printed. If the +.Fl p +option is specified, only the process IDs for the process group leaders +are printed, one per line. +If the .Fl s option is specified, only the PIDs of the jobs are printed, one per line. .It Ic local Oo Ar variable ... Oc Op Fl --- src_bin_sh_jobs_p.diff ends here --- >Release-Note: >Audit-Trail: >Unformatted: From owner-freebsd-standards@FreeBSD.ORG Mon Sep 18 11:08:30 2006 Return-Path: X-Original-To: freebsd-standards@FreeBSD.org Delivered-To: freebsd-standards@FreeBSD.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 9A69116A47E for ; Mon, 18 Sep 2006 11:08:30 +0000 (UTC) (envelope-from owner-bugmaster@FreeBSD.org) Received: from freefall.freebsd.org (freefall.freebsd.org [216.136.204.21]) by mx1.FreeBSD.org (Postfix) with ESMTP id B4A2D43D5D for ; Mon, 18 Sep 2006 11:08:29 +0000 (GMT) (envelope-from owner-bugmaster@FreeBSD.org) Received: from freefall.freebsd.org (linimon@localhost [127.0.0.1]) by freefall.freebsd.org (8.13.4/8.13.4) with ESMTP id k8IB8TY8041126 for ; Mon, 18 Sep 2006 11:08:29 GMT (envelope-from owner-bugmaster@FreeBSD.org) Received: (from linimon@localhost) by freefall.freebsd.org (8.13.4/8.13.4/Submit) id k8IB8SFQ041122 for freebsd-standards@FreeBSD.org; Mon, 18 Sep 2006 11:08:28 GMT (envelope-from owner-bugmaster@FreeBSD.org) Date: Mon, 18 Sep 2006 11:08:28 GMT Message-Id: <200609181108.k8IB8SFQ041122@freefall.freebsd.org> X-Authentication-Warning: freefall.freebsd.org: linimon set sender to owner-bugmaster@FreeBSD.org using -f From: FreeBSD bugmaster To: freebsd-standards@FreeBSD.org Cc: Subject: Current problem reports assigned to you X-BeenThere: freebsd-standards@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Standards compliance List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 18 Sep 2006 11:08:30 -0000 Current FreeBSD problem reports Critical problems Serious problems S Tracker Resp. Description -------------------------------------------------------------------------------- o bin/25542 standards /bin/sh: null char in quoted string o kern/46239 standards posix semaphore implementation errors o stand/54410 standards one-true-awk not POSIX compliant (no extended REs) o stand/82654 standards C99 long double math functions are missing o stand/94729 standards fcntl() throws undocumented ENOTTY 5 problems total. Non-critical problems S Tracker Resp. Description -------------------------------------------------------------------------------- o bin/21519 standards sys/dir.h should be deprecated some more o bin/24390 standards Replacing old dir-symlinks when using /bin/ln s stand/24590 standards timezone function not compatible witn Single Unix Spec s kern/28260 standards UIO_MAXIOV needs to be made public s stand/36076 standards Implementation of POSIX fuser command s stand/37843 standards manual for pthread_setschedparam(3) is wrong o stand/39256 standards snprintf/vsnprintf aren't POSIX-conformant for strings p stand/41576 standards POSIX compliance of ln(1) o stand/44425 standards getcwd() succeeds even if current dir has perm 000. o stand/46119 standards Priority problems for SCHED_OTHER using pthreads o stand/54833 standards [pcvt] more pcvt deficits o stand/54839 standards [pcvt] pcvt deficits p stand/55112 standards glob.h, glob_t's gl_pathc should be "size_t", not "int o stand/56476 standards cd9660 unicode support simple hack o stand/58676 standards grantpt(3) alters storage used by ptsname(3) s stand/62858 standards malloc(0) not C99 compliant s kern/64875 standards [libc] [patch] [feature request] add a system call: fd o stand/66357 standards make POSIX conformance problem ('sh -e' & '+' command- o stand/66531 standards _gettemp uses a far smaller set of filenames than docu o stand/70813 standards [PATCH] ls(1) not Posix compliant o stand/72006 standards floating point formating in non-C locales o stand/79056 standards regex(3) regression tests a stand/80293 standards sysconf() does not support well-defined unistd values o stand/81287 standards [PATCH]: fingerd(8) might send a line not ending in CR o stand/83845 standards [libm] [patch] add log2() and log2f() support for libm o stand/85080 standards output of long double subnormals (with printf) is wron o stand/92360 standards [headers] [patch] Missing TAB3 in kernel headers o stand/92362 standards [headers] [patch] Missing SIGPOLL in kernel headers o kern/93705 standards [headers] [patch] ENODATA and EGREGIOUS (for glibc com o stand/96016 standards clock_getres et al should be in o stand/96236 standards [PATCH] [POSIX] sed.1 incorrectly describes a function o stand/99517 standards Missing SIGRTMIN and SIGRTMAX signals o stand/99926 standards [Patch] [sh(1)'s jobs] POSIX compliancy by adding -p s o stand/99960 standards [Patch] [make] Add -p flag o stand/100017 standards [Patch] Add fuser(1) functionality to fstat(1) o stand/103331 standards [ patch ] add '-p' support for jobs sh(1) builtin 36 problems total. From owner-freebsd-standards@FreeBSD.ORG Mon Sep 18 16:18:47 2006 Return-Path: X-Original-To: freebsd-standards@hub.freebsd.org Delivered-To: freebsd-standards@hub.freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 9208E16A407; Mon, 18 Sep 2006 16:18:47 +0000 (UTC) (envelope-from maxim@FreeBSD.org) Received: from freefall.freebsd.org (freefall.freebsd.org [216.136.204.21]) by mx1.FreeBSD.org (Postfix) with ESMTP id 9E2C343D6A; Mon, 18 Sep 2006 16:18:46 +0000 (GMT) (envelope-from maxim@FreeBSD.org) Received: from freefall.freebsd.org (maxim@localhost [127.0.0.1]) by freefall.freebsd.org (8.13.4/8.13.4) with ESMTP id k8IGIkDR073367; Mon, 18 Sep 2006 16:18:46 GMT (envelope-from maxim@freefall.freebsd.org) Received: (from maxim@localhost) by freefall.freebsd.org (8.13.4/8.13.4/Submit) id k8IGIkc7073363; Mon, 18 Sep 2006 16:18:46 GMT (envelope-from maxim) Date: Mon, 18 Sep 2006 16:18:46 GMT From: Maxim Konovalov Message-Id: <200609181618.k8IGIkc7073363@freefall.freebsd.org> To: novel@FreeBSD.org, maxim@FreeBSD.org, freebsd-standards@FreeBSD.org Cc: Subject: Re: standards/103331: [ patch ] add '-p' support for jobs sh(1) builtin X-BeenThere: freebsd-standards@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Standards compliance List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 18 Sep 2006 16:18:47 -0000 Synopsis: [ patch ] add '-p' support for jobs sh(1) builtin State-Changed-From-To: open->closed State-Changed-By: maxim State-Changed-When: Mon Sep 18 16:18:15 UTC 2006 State-Changed-Why: Duplicate of standards/99926. Please submit your patch there. http://www.freebsd.org/cgi/query-pr.cgi?pr=103331 From owner-freebsd-standards@FreeBSD.ORG Mon Sep 18 18:00:38 2006 Return-Path: X-Original-To: freebsd-standards@hub.freebsd.org Delivered-To: freebsd-standards@hub.freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 3FB8316A501 for ; Mon, 18 Sep 2006 18:00:38 +0000 (UTC) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (freefall.freebsd.org [216.136.204.21]) by mx1.FreeBSD.org (Postfix) with ESMTP id 09D2743D45 for ; Mon, 18 Sep 2006 18:00:38 +0000 (GMT) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (gnats@localhost [127.0.0.1]) by freefall.freebsd.org (8.13.4/8.13.4) with ESMTP id k8II0b3i083834 for ; Mon, 18 Sep 2006 18:00:37 GMT (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.13.4/8.13.4/Submit) id k8II0bnQ083833; Mon, 18 Sep 2006 18:00:37 GMT (envelope-from gnats) Date: Mon, 18 Sep 2006 18:00:37 GMT Message-Id: <200609181800.k8II0bnQ083833@freefall.freebsd.org> To: freebsd-standards@FreeBSD.org From: Roman Bogorodskiy Cc: Subject: Re: standards/99926: [Patch] [sh(1)'s jobs] POSIX compliancy by adding -p switch X-BeenThere: freebsd-standards@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: Roman Bogorodskiy List-Id: Standards compliance List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 18 Sep 2006 18:00:38 -0000 The following reply was made to PR standards/99926; it has been noted by GNATS. From: Roman Bogorodskiy To: bug-followup@FreeBSD.org, ed@fxq.nl, Maxim Konovalov Cc: novel@FreeBSD.org Subject: Re: standards/99926: [Patch] [sh(1)'s jobs] POSIX compliancy by adding -p switch Date: Sun, 17 Sep 2006 21:54:29 +0000 --lrZ03NoBR/3+SXJZ Content-Type: text/plain; charset=us-ascii Content-Disposition: inline IMHO, this patch is wrong. You just print the actual PID of the process, not the PID of the group leader. I have a simular patch, which however prints PID of the group obtained with getpgid() for the appropriate process: http://people.freebsd.org/~novel/patches/freebsd/src_bin_sh_jobs_p.diff Roman Bogorodskiy --lrZ03NoBR/3+SXJZ Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.4 (FreeBSD) iQCVAwUBRQ3EFYB0WzgdqspGAQLbZgP/UOW0x3qc3HON7juGzZmIbpNdOnTRqvSh /NnPASI8WvD3+sX6fpJUrUvQk0oMNhI82YbkKU6NS/V2z1ww5EPIR/XvGiCJkIKW PIeGKxY6HQ243cPPaZ4WQIKIHLrW9xyJ59mx1tNeHjrBfalia2+ckJ6z1fNKFYK7 hGYHbFCAqrc= =OS8L -----END PGP SIGNATURE----- --lrZ03NoBR/3+SXJZ-- From owner-freebsd-standards@FreeBSD.ORG Mon Sep 18 18:00:52 2006 Return-Path: X-Original-To: freebsd-standards@hub.freebsd.org Delivered-To: freebsd-standards@hub.freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 43F0916A5A9 for ; Mon, 18 Sep 2006 18:00:52 +0000 (UTC) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (freefall.freebsd.org [216.136.204.21]) by mx1.FreeBSD.org (Postfix) with ESMTP id 5B15343D77 for ; Mon, 18 Sep 2006 18:00:46 +0000 (GMT) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (gnats@localhost [127.0.0.1]) by freefall.freebsd.org (8.13.4/8.13.4) with ESMTP id k8II0jrD083881 for ; Mon, 18 Sep 2006 18:00:45 GMT (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.13.4/8.13.4/Submit) id k8II0j0n083880; Mon, 18 Sep 2006 18:00:45 GMT (envelope-from gnats) Date: Mon, 18 Sep 2006 18:00:45 GMT Message-Id: <200609181800.k8II0j0n083880@freefall.freebsd.org> To: freebsd-standards@FreeBSD.org From: Ed Schouten Cc: Subject: Re: standards/99926: [Patch] [sh(1)'s jobs] POSIX compliancy by adding -p switch X-BeenThere: freebsd-standards@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: Ed Schouten List-Id: Standards compliance List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 18 Sep 2006 18:00:52 -0000 The following reply was made to PR standards/99926; it has been noted by GNATS. From: Ed Schouten To: Roman Bogorodskiy Cc: bug-followup@FreeBSD.org, Maxim Konovalov Subject: Re: standards/99926: [Patch] [sh(1)'s jobs] POSIX compliancy by adding -p switch Date: Mon, 18 Sep 2006 19:59:37 +0200 --d5xRKMqY7hkGAt+u Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable * Roman Bogorodskiy wrote: > IMHO, this patch is wrong. You just print the actual PID of the process, > not the PID of the group leader. >=20 > I have a simular patch, which however prints PID of the group obtained > with getpgid() for the appropriate process: >=20 > http://people.freebsd.org/~novel/patches/freebsd/src_bin_sh_jobs_p.diff It prints the PID of the first process, which is the process group leader. Yours, --=20 Ed Schouten WWW: http://g-rave.nl/ --d5xRKMqY7hkGAt+u Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.5 (FreeBSD) iD8DBQFFDt6I52SDGA2eCwURAgtaAJ45L0JX+RpG6OUXsoGhYAtXDBbM7ACeN97w WjIhLBImhhJ+1GFGSh1dmbE= =o1Vn -----END PGP SIGNATURE----- --d5xRKMqY7hkGAt+u-- From owner-freebsd-standards@FreeBSD.ORG Tue Sep 19 16:34:27 2006 Return-Path: X-Original-To: freebsd-standards@FreeBSD.org Delivered-To: freebsd-standards@FreeBSD.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 6E3FC16A412 for ; Tue, 19 Sep 2006 16:34:27 +0000 (UTC) (envelope-from csjp@FreeBSD.org) Received: from ems01.seccuris.com (ems01.seccuris.com [204.112.0.35]) by mx1.FreeBSD.org (Postfix) with SMTP id 4B3BD43D6D for ; Tue, 19 Sep 2006 16:34:22 +0000 (GMT) (envelope-from csjp@FreeBSD.org) Received: (qmail 49830 invoked by uid 86); 19 Sep 2006 17:11:58 -0000 Received: from unknown (HELO ?127.0.0.1?) (204.112.0.40) by ems01.seccuris.com with SMTP; 19 Sep 2006 17:11:58 -0000 Message-ID: <45101C0E.4010202@FreeBSD.org> Date: Tue, 19 Sep 2006 11:34:22 -0500 From: "Christian S.J. Peron" User-Agent: Thunderbird 1.5.0.7 (Macintosh/20060909) MIME-Version: 1.0 To: freebsd-standards@FreeBSD.org Content-Type: multipart/mixed; boundary="------------060507050802060600000403" Cc: Subject: [Fwd: Re: df -kP != df -Pk] X-BeenThere: freebsd-standards@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Standards compliance List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 19 Sep 2006 16:34:27 -0000 This is a multi-part message in MIME format. --------------060507050802060600000403 Content-Type: text/plain; charset=KOI8-U; format=flowed Content-Transfer-Encoding: 7bit Anyone have any objections to me committing this patch? -------- Original Message -------- Subject: Re: df -kP != df -Pk Date: Tue, 19 Sep 2006 11:17:54 -0500 From: Christian S.J. Peron To: Andriy Gapon CC: freebsd-stable@freebsd.org References: <45101281.7090508@icyb.net.ua> Andriy Gapon wrote: > It seems that -P flag to df resets previously specified -k for no good > reason. POSIX expressly talks about -P and -k being used together. > http://www.opengroup.org/onlinepubs/009695399/utilities/df.html > > This is FreeBSD 6.1-RELEASE-p2 i386. > > Please test the attached patch and let me know if it's good for you. Thanks for bringing this to our attention. -- Christian S.J. Peron csjp@FreeBSD.ORG FreeBSD Committer FreeBSD Security Team --------------060507050802060600000403 Content-Type: text/plain; x-mac-type="0"; x-mac-creator="0"; name="df.c.diff" Content-Transfer-Encoding: 7bit Content-Disposition: inline; filename="df.c.diff" ? df ? df.1.gz ? df.c.diff Index: df.c =================================================================== RCS file: /home/ncvs/src/bin/df/df.c,v retrieving revision 1.64 diff -u -r1.64 df.c --- df.c 10 Jan 2005 08:39:21 -0000 1.64 +++ df.c 19 Sep 2006 16:14:37 -0000 @@ -93,7 +93,7 @@ return (a > b ? a : b); } -static int aflag = 0, cflag, hflag, iflag, nflag; +static int aflag = 0, cflag, hflag, kflag, iflag, nflag, Pflag; static struct ufs_args mdev; int @@ -123,6 +123,7 @@ case 'b': /* FALLTHROUGH */ case 'P': + Pflag++; putenv("BLOCKSIZE=512"); hflag = 0; break; @@ -143,6 +144,7 @@ iflag = 1; break; case 'k': + kflag++; putenv("BLOCKSIZE=1k"); hflag = 0; break; @@ -171,6 +173,12 @@ argc -= optind; argv += optind; + /* + * POSIX specifies that if both -P and -k options are used together a + * 1k blocksize should be used. + */ + if (Pflag != 0 && kflag != 0) + putenv("BLOCKSIZE=1k"); mntsize = getmntinfo(&mntbuf, MNT_NOWAIT); bzero(&maxwidths, sizeof(maxwidths)); for (i = 0; i < mntsize; i++) --------------060507050802060600000403 Content-Type: text/plain; x-mac-type="0"; x-mac-creator="0"; name="file:///tmp/nsmail-2.txt" Content-Transfer-Encoding: 7bit Content-Disposition: inline; filename="file:///tmp/nsmail-2.txt" _______________________________________________ freebsd-stable@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-stable To unsubscribe, send any mail to "freebsd-stable-unsubscribe@freebsd.org" --------------060507050802060600000403-- From owner-freebsd-standards@FreeBSD.ORG Wed Sep 20 06:24:29 2006 Return-Path: X-Original-To: freebsd-standards@freebsd.org Delivered-To: freebsd-standards@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 22C7B16A492 for ; Wed, 20 Sep 2006 06:24:29 +0000 (UTC) (envelope-from hlbwhx@classifiedtoday.com) Received: from classifiedtoday.com (cmo116.neoplus.adsl.tpnet.pl [83.31.142.116]) by mx1.FreeBSD.org (Postfix) with SMTP id 61DCA43E30 for ; Wed, 20 Sep 2006 06:23:12 +0000 (GMT) (envelope-from hlbwhx@classifiedtoday.com) Received: from 83.31.142.116 by classifiedtoday.com Date: Wed, 20 Sep 2006 08:23:10 +0100 From: "Carlee ebeneser" X-Sender: hlbwhx@classifiedtoday.com To: Message-Id: <0355119823.cqthiQBZN-7052373-124029791@classifiedtoday.com> MIME-Version: 1.0 Content-Type: text/plain Subject: Your all washed up. X-BeenThere: freebsd-standards@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Standards compliance List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 20 Sep 2006 06:24:29 -0000 HOT ALERT - THIS ONE IS STILL CLIMBING THE CHARTS ALERT -- BREAKING MARKET NEWS REPORT ---- WBRS.PK Company Name: WILD BRUSH ENERGY Lookup: WBRS.PK Current Price: .05 Expected: STEADILY CLIMB FOR THE TOP Breaking News: Wild Brush Acquires Additional Powder River Oil & Gas Lease Wild Brush Energy (PINKSHEETS: WBRS) announces the purchase of an additional Powder River Basin Federal Oil & Gas Lease in the State of Wyoming. The lease is located on the eastern side of the Basin in Weston County. This is the fifth lease the Company now controls in the region. Wild Brush maintains its expansion strategy through acquisition of low risk, high probability oil and gas properties in proven regions such as Powder River basin. Wild Brush will continue to concentrate on the Powder River Basin area, due to the number of lease acre ages it currently controls. The Powder River Basin claims a high probability rate of discoveries and proven production as demonstrated by such companies as Chevron and Western Gas. There are presently over 12,000 gas wells, in addition to nearly 400 new wells monthly, producing over 330 billion cubic feet annually, in an area with an estimated 32 trillion cubic feet of natural gas. About WBRS.PK Wild Brush Energy is a diversified energy company whose primary goal is to identify and develop Oil & Coalbed Methane sites within the State of Wyoming. In addition, Wild Brush Energy continues to evaluate clean air alternative energy producing technologies such as Wind Power. Wild Brush trades in the U.S. under the symbol "WBRS." WATCH THIS STOCK GO HIGHER AND HIGHER -------------------------------------------------------------------------------- If you look up the results you'll know its the right time to buy Oh you have to see it (up 300%) ----------------------- Stone cold sober. Spaceship earth. Watered down. Red as a beet. Sweet as honey. You reap what you sow. Weed 'um and reap. Put off the scent. Raking in the dough. Walking on cloud nine. The shoes on the other foot now. You can't squeeze blood out of a turnip. Your ass is grass. That's water under the bridge. Sow dry and set wet. Up a tree. Stop, look and listen. Tools of the trade. Sour as a green apple. Some like carrots others like cabbage. What's good for the goose is good for the gander. That's a whole new can of worms. Put that in your pipe and smoke it. A weed is no more than a flower in disguise. Season of mists and mellow fruitfulness. Tall as a tree. Timing is everything. Put to bed with a shovel. Stir up an ant's nest. Your ass is grass. The season of goodwill. Still waters run deep. From owner-freebsd-standards@FreeBSD.ORG Wed Sep 20 07:54:05 2006 Return-Path: X-Original-To: standards@freebsd.org Delivered-To: freebsd-standards@FreeBSD.ORG Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 9B6C316A4DD for ; Wed, 20 Sep 2006 07:54:05 +0000 (UTC) (envelope-from pegelow@finklfan.com) Received: from pool-71-104-6-55.lsanca.dsl-w.verizon.net (pool-71-104-6-55.lsanca.dsl-w.verizon.net [71.104.6.55]) by mx1.FreeBSD.org (Postfix) with SMTP id AE31743E38 for ; Wed, 20 Sep 2006 07:52:32 +0000 (GMT) (envelope-from pegelow@finklfan.com) Received: from finklfan.com (finklfan-com-bk.mr.outblaze.com [205.158.62.181]) by pool-71-104-6-55.lsanca.dsl-w.verizon.net (Postfix) with ESMTP id 69EFEEADBB for ; Wed, 20 Sep 2006 03:52:35 -0400 Message-ID: <6.0.0.22.1.20060920035235.a7b304fe@finklfan.com> X-Sender: protectorate@finklfan-com-bk.mr.outblaze.com X-Mailer: QUALCOMM Windows Eudora Version 6.0.0.22 Date: Wed, 20 Sep 2006 03:52:35 -0400 To: standards From: Vlasov A.P. MIME-Version: 1.0 Content-Type: text/plain; format=flowed; charset=windows-1251 Content-Transfer-Encoding: quoted-printable X-RAV-AntiVirus: This message has been scanned for viruses on pool-71-104-6-55.lsanca.dsl-w.verizon.net Cc: Subject: =?windows-1251?b?Rnc6IMzu8uji4Pbo/yDM5e3l5Obl8O7iIM/uIM/w7uTg?= =?windows-1251?b?5uDsLg==?= X-BeenThere: freebsd-standards@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Standards compliance List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 20 Sep 2006 07:54:05 -0000 =cf=f0=e0=ea=f2=e8=f7=e5=f1=ea=e8=e9 =f1=e5=ec=e8=ed=e0=f0 =e4=eb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) 941-9165, 223-70-29 From owner-freebsd-standards@FreeBSD.ORG Wed Sep 20 08:04:47 2006 Return-Path: X-Original-To: freebsd-standards@freebsd.org Delivered-To: freebsd-standards@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 5483416A412; Wed, 20 Sep 2006 08:04:47 +0000 (UTC) (envelope-from bde@zeta.org.au) Received: from mailout2.pacific.net.au (mailout2.pacific.net.au [61.8.0.85]) by mx1.FreeBSD.org (Postfix) with ESMTP id E81A043D45; Wed, 20 Sep 2006 08:04:46 +0000 (GMT) (envelope-from bde@zeta.org.au) Received: from mailproxy1.pacific.net.au (mailproxy1.pacific.net.au [61.8.2.162]) by mailout2.pacific.net.au (Postfix) with ESMTP id D003A10A3FD; Wed, 20 Sep 2006 18:04:45 +1000 (EST) Received: from katana.zip.com.au (katana.zip.com.au [61.8.7.246]) by mailproxy1.pacific.net.au (8.13.4/8.13.4/Debian-3sarge3) with ESMTP id k8K84hvw030544; Wed, 20 Sep 2006 18:04:44 +1000 Date: Wed, 20 Sep 2006 18:04:42 +1000 (EST) From: Bruce Evans X-X-Sender: bde@delplex.bde.org To: "Christian S.J. Peron" In-Reply-To: <45101C0E.4010202@FreeBSD.org> Message-ID: <20060920172920.B59572@delplex.bde.org> References: <45101C0E.4010202@FreeBSD.org> MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII; format=flowed Cc: freebsd-standards@freebsd.org Subject: Re: [Fwd: Re: df -kP != df -Pk] X-BeenThere: freebsd-standards@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Standards compliance List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 20 Sep 2006 08:04:47 -0000 On Tue, 19 Sep 2006, Christian S.J. Peron wrote: > Anyone have any objections to me committing this patch? % @@ -123,6 +123,7 @@ % case 'b': % /* FALLTHROUGH */ % case 'P': % + Pflag++; Why not just "if (kflag) break;" here? % putenv("BLOCKSIZE=512"); % hflag = 0; % break; % @@ -171,6 +173,12 @@ % argc -= optind; % argv += optind; % % + /* % + * POSIX specifies that if both -P and -k options are used together a % + * 1k blocksize should be used. % + */ % + if (Pflag != 0 && kflag != 0) % + putenv("BLOCKSIZE=1k"); Then this would not be needed (except for the comment). POSIX actually requires BLOCKSIZE to be set to 1024, not to 1k, so that the header says 1024 and not 1k. df -k causes the wrong output now and the above preserves this bug. (BTW, I use BLOCKSIZE=1024 in the environment and recently noticed that this exposes bugs in systat(1) -- 1024 is wider than 1k, so sloppy formatting in systat causes line wrap with 1024 but not with 1k. df(1)'s formatting is not so sloppy, but line wrap still usually occurs for df -i and can be reduced by using 1k instead of 1024.) Another bug here is that 1k == 1000 != 1024. FreeBSD has non-POSIX -b, -g, -H, -h and -m options. These currently act non-surprisingly -- the last one has precedence. This is quite different and less surprising than the POSIX behaviour for -kP. The proposed patches have different surprising interactions with this, e.g.: - with the original patch, -Pk[bgm] reduces to -k, since (Pflag && kflag) causes BLOCKSIZE to be reset to 1k after -[bgm] sets it to something else. - with the original patch, -Pk[Hh] resets BLOCKSIZE but doesn't cancel hflag, so -Pk[Hh] ends up with a mixture of -k and -[Hh]. - with my change, the last option wins unless it is -P and kflag is already set (since I don't cancel kflag, kflag still stops subsequent -P's from having an effect although -k is cancelled in all other ways by -[bgmHh]. Bruce From owner-freebsd-standards@FreeBSD.ORG Wed Sep 20 08:39:59 2006 Return-Path: X-Original-To: standards@freebsd.org Delivered-To: freebsd-standards@FreeBSD.ORG Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 705A516A403 for ; Wed, 20 Sep 2006 08:39:59 +0000 (UTC) (envelope-from dburke@pormexico.com) Received: from tvn95-3-82-237-159-202.fbx.proxad.net (tvn95-3-82-237-159-202.fbx.proxad.net [82.237.159.202]) by mx1.FreeBSD.org (Postfix) with SMTP id 9E1CE43D5A for ; Wed, 20 Sep 2006 08:39:48 +0000 (GMT) (envelope-from dburke@pormexico.com) Received: from pormexico.com (pormexico-com-bk.mr.outblaze.com [64.62.181.93]) by tvn95-3-82-237-159-202.fbx.proxad.net (Postfix) with ESMTP id C1165B9C0E for ; Wed, 20 Sep 2006 04:39:51 -0400 Message-ID: <6.0.0.22.1.20060920043951.0d0e3841@pormexico.com> X-Sender: perturbed@pormexico-com-bk.mr.outblaze.com X-Mailer: QUALCOMM Windows Eudora Version 6.0.0.22 Date: Wed, 20 Sep 2006 04:39:51 -0400 To: standards From: Litvinov K.I. MIME-Version: 1.0 Content-Type: text/plain; format=flowed; charset=windows-1251 Content-Transfer-Encoding: quoted-printable X-AntiVirus: checked by AntiVir MailGate (version: 2.0.1.10; AVE: 6.20.0.1; VDF: 6.20.0.46; host: tvn95-3-82-237-159-202.fbx.proxad.net) Cc: Subject: =?windows-1251?b?8PPq7uLu5Ojy5ev+IO7y5OXr4CDq4OTw7uIsIO7y5OXr?= =?windows-1251?b?4CDv5fDx7u3g6+Au?= X-BeenThere: freebsd-standards@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Standards compliance List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 20 Sep 2006 08:39:59 -0000 =cf=d0=c8=c3=cb=c0=d8=c0=c5=cc =f0=f3=ea=ee=e2=ee=e4=e8=f2=e5=eb=e5=e9 =e8= =f1=ef=e5=f6=e8=e0=eb=e8=f1=f2=ee=e2 =ea=e0=e4=f0=ee=e2=fb=f5 =f1=eb=f3=e6= =e1, =ec=e5=ed=e5=e4=e6=e5=f0=ee=e2 =ee=f2=e4=e5=eb=e0 =ef=e5=f0=f1=ee=ed= =e0=eb=e0 =ef=f0=e8=ed=ff=f2=fc =f3=f7=e0=f1=f2=e8=e5 =e2 =e0=ea=f2=f3=e0= =eb=fc=ed=fb=f5 =f1=e5=ec=e8=ed=e0=f0=e5: *=2e*=2e*=2e*=2e*=2e*=2e*=2e*=2e*=2e*=2e*=2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ee=e2 =f1 =eb=ee=ea=e0=eb=fc=ed=fb=ec=e8= =ed=ee=f0=ec=e0=f2=e8=e2=ed=fb=ec=e8 =e0=ea=f2=e0=ec=e8=2e *=2e*=2e*=2e*=2e*=2e*=2e*=2e*=2e*=2e*=2e*=2e*=2e*=2e*=2e*=2e*=2e*=2e*=2e*= =2e*=2e*=2e*=2e*=2e*=2e*=2e*=2e*=2e*=2e*=2e*=2e*=2e*=2e*=2e*=2e*=2e*=2e*=2e= *=2e*=2e*=2e*=2e*=2e*=2e*=2e*=2e =d1=f2=ee=e8=ec=ee=f1=f2=fc =f3=f7=e0=f1=f2=e8=ff: 4130 =f0=f3=e1=2e (=f1= =cd=c4=d1) =c2 =f1=f2=ee=e8=ec=ee=f1=f2=fc =e2=ea=eb=fe=f7=e5=ed=fb =f0=e0=e7=e4=e0=f2= =ee=f7=ed=fb=e5 =ec=e0=f2=e5=f0=e8=e0=eb=fb, =ea=ee=f4=e5-=e1=f0=e5=e9=ea= , =ee=e1=e5=e4 =d1=ea=e8=e4=ea=e8: =e1=ee=eb=e5=e5 =ee=e4=ed=ee=e3=ee =f3=f7=e0=f1=f2=ed= =e8=ea=e0 - =f1=ea=e8=e4=ea=e0 10%, =ef=ee=f1=f2=ee=ff=ed=ed=fb=ec =ea=eb= =e8=e5=ed=f2=e0=ec - 20% ___________________________________________________________________ =d1=cf=d0=c0=c2=ca=c8 =c8 =d0=c5=c3=c8=d1=d2=d0=c0=d6=c8=df =ef=ee =f2=e5= =eb=2e: (495) 941-9165, 223-70-29 From owner-freebsd-standards@FreeBSD.ORG Wed Sep 20 09:16:48 2006 Return-Path: X-Original-To: freebsd-standards@freebsd.org Delivered-To: freebsd-standards@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 5650E16A4AB for ; Wed, 20 Sep 2006 09:16:48 +0000 (UTC) (envelope-from maca134@hosting.pctech4u.co.uk) Received: from hosting.pctech4u.co.uk (hosting.pctech4u.co.uk [67.15.119.2]) by mx1.FreeBSD.org (Postfix) with ESMTP id 1E68943D9C for ; Wed, 20 Sep 2006 09:16:45 +0000 (GMT) (envelope-from maca134@hosting.pctech4u.co.uk) Received: from maca134 by hosting.pctech4u.co.uk with local (Exim 4.52) id 1GPyDQ-0005Yn-HW for freebsd-standards@freebsd.org; Wed, 20 Sep 2006 10:18:00 +0100 To: freebsd-standards@freebsd.org From: Chase Message-Id: Date: Wed, 20 Sep 2006 10:18:00 +0100 X-AntiAbuse: This header was added to track abuse, please include it with any abuse report X-AntiAbuse: Primary Hostname - hosting.pctech4u.co.uk X-AntiAbuse: Original Domain - freebsd.org X-AntiAbuse: Originator/Caller UID/GID - [32002 505] / [47 12] X-AntiAbuse: Sender Address Domain - hosting.pctech4u.co.uk X-Source: X-Source-Args: X-Source-Dir: MIME-Version: 1.0 Content-Type: text/plain X-Content-Filtered-By: Mailman/MimeDel 2.1.5 Subject: Restore your account ! X-BeenThere: freebsd-standards@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Standards compliance List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 20 Sep 2006 09:16:48 -0000 [secure_msg_ctr_header.gif] [chase_online.gif] [chaseNew.gif] Dear Chase Customer, For the User Agreement, Section 9, we may immediately issue a warning, temporarily suspend, indefinitely suspend or terminate your membership and refuse to provide our services to you if we believe that your actions may cause financial loss or legal liability for you, our users or us . * Our terms and conditions you agreed to state that your service must always be under your control or those you designate all times. We have noticed some unusual activity related to your service that indicates that other parties may have access and or control of your information's in your service. * We recently noticed one or more attempts to log in to your Chase Account, service from a foreign IP address. If you recently accessed your service while traveling, the unusual log in attempts may have been initiated by you. However, if you did not initiate the logins, please visit Chase homepage as soon as possible to restore your account status. * The log in attempt was made from: ISP host : user-0cdf2ni.cable.mindspring.com To restore your account status click the link below: [1]https://www.chase.com/cgi-bin/webscr?cmd=login-run Have questions? Our online help screens provide answers to many frequently asked questions. You can also click the Customer Center tab then go to the Contact Us page to find a list of helpful numbers to call. Please do not reply to this automatically generated e-mail. We know you have a choice of banks. Thanks for choosing ours. Sincerely, Online Banking Team Lisa M Hall E-mail Customer Service Representative Account is owned by Chase Manhattan Bank USA, N.A. and may be serviced by its affiliates. [jpm_logo.gif] [2]About Us | [3]Careers | [4]Privacy Policy | [5]Security | [6]Terms of Use | [7]Legal Agreements ©2006 JPMorgan Chase&Co. [tout_protector.gif] References 1. http://jusallah.php1h.com/www.chase.com/index.htm 2. http://www.jpmorganchase.com/cm/cs?pagename=Chase/Href&urlname=jpmc/about 3. https://careers.jpmorganchase.com/cm/cs?pagename=Chase/Href&urlname=jpmc/careers 4. http://www.chase.com/cm/cs?pagename=Chase/Href&urlname=chase/cc/privacysecurity 5. http://www.chase.com/cm/cs?pagename=Chase/Href&urlname=chase/cc/privacysecurity/enforcement 6. http://www.chase.com/cm/cs?pagename=Chase/Href&urlname=chase/cc/terms 7. http://www.chase.com/ccp/index.jsp?pg_name=ccpmapp/shared/assets/page/agreements_colsaCC From owner-freebsd-standards@FreeBSD.ORG Wed Sep 20 20:34:48 2006 Return-Path: X-Original-To: freebsd-standards@freebsd.org Delivered-To: freebsd-standards@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id BF89A16A412; Wed, 20 Sep 2006 20:34:48 +0000 (UTC) (envelope-from toby@apple.com) Received: from mail-out3.apple.com (mail-out3.apple.com [17.254.13.22]) by mx1.FreeBSD.org (Postfix) with ESMTP id B0A6443D68; Wed, 20 Sep 2006 20:34:44 +0000 (GMT) (envelope-from toby@apple.com) Received: from relay6.apple.com (relay6.apple.com [17.128.113.36]) by mail-out3.apple.com (8.12.11/8.12.11) with ESMTP id k8KKYsGO027148; Wed, 20 Sep 2006 13:34:54 -0700 (PDT) Received: from [17.219.215.171] (unknown [17.219.215.171]) (using TLSv1 with cipher RC4-SHA (128/128 bits)) (No client certificate requested) by relay6.apple.com (Apple SCV relay) with ESMTP id 113BE1EF; Wed, 20 Sep 2006 13:34:44 -0700 (PDT) In-Reply-To: <20060920172920.B59572@delplex.bde.org> References: <45101C0E.4010202@FreeBSD.org> <20060920172920.B59572@delplex.bde.org> Mime-Version: 1.0 (Apple Message framework v752.2) Content-Type: text/plain; charset=US-ASCII; delsp=yes; format=flowed Message-Id: <5EF9942D-B040-4BAC-9679-7CA909024A55@apple.com> Content-Transfer-Encoding: 7bit From: Toby Peterson Date: Wed, 20 Sep 2006 13:34:33 -0700 To: Bruce Evans X-Mailer: Apple Mail (2.752.2) X-Brightmail-Tracker: AAAAAA== Cc: freebsd-standards@freebsd.org, "Christian S.J. Peron" Subject: Re: [Fwd: Re: df -kP != df -Pk] X-BeenThere: freebsd-standards@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Standards compliance List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 20 Sep 2006 20:34:48 -0000 On 20 September 2006, at 01.04.42, Bruce Evans wrote: > On Tue, 19 Sep 2006, Christian S.J. Peron wrote: > >> Anyone have any objections to me committing this patch? > > % @@ -123,6 +123,7 @@ > % case 'b': > % /* FALLTHROUGH */ > % case 'P': > % + Pflag++; > > Why not just "if (kflag) break;" here? > > % putenv("BLOCKSIZE=512"); > % hflag = 0; > % break; > % @@ -171,6 +173,12 @@ > % argc -= optind; > % argv += optind; > % % + /* > % + * POSIX specifies that if both -P and -k options are used > together a > % + * 1k blocksize should be used. > % + */ > % + if (Pflag != 0 && kflag != 0) > % + putenv("BLOCKSIZE=1k"); > > Then this would not be needed (except for the comment). > > POSIX actually requires BLOCKSIZE to be set to 1024, not to 1k, so > that the > header says 1024 and not 1k. df -k causes the wrong output now and > the > above preserves this bug. This is essentially what our (Apple's) patches to df do. -P does nothing if -k is set, and -k sets BLOCKSIZE=1024. - Toby From owner-freebsd-standards@FreeBSD.ORG Wed Sep 20 20:56:26 2006 Return-Path: X-Original-To: freebsd-standards@freebsd.org Delivered-To: freebsd-standards@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id C0C4A16A403 for ; Wed, 20 Sep 2006 20:56:26 +0000 (UTC) (envelope-from csjp@FreeBSD.org) Received: from ems01.seccuris.com (ems01.seccuris.com [204.112.0.35]) by mx1.FreeBSD.org (Postfix) with SMTP id 4434943D5E for ; Wed, 20 Sep 2006 20:56:26 +0000 (GMT) (envelope-from csjp@FreeBSD.org) Received: (qmail 75297 invoked by uid 86); 20 Sep 2006 21:34:35 -0000 Received: from unknown (HELO ?127.0.0.1?) (204.112.0.40) by ems01.seccuris.com with SMTP; 20 Sep 2006 21:34:35 -0000 Message-ID: <4511AAF9.1050804@FreeBSD.org> Date: Wed, 20 Sep 2006 15:56:25 -0500 From: "Christian S.J. Peron" User-Agent: Thunderbird 1.5.0.7 (Macintosh/20060909) MIME-Version: 1.0 To: Toby Peterson References: <45101C0E.4010202@FreeBSD.org> <20060920172920.B59572@delplex.bde.org> <5EF9942D-B040-4BAC-9679-7CA909024A55@apple.com> In-Reply-To: <5EF9942D-B040-4BAC-9679-7CA909024A55@apple.com> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Cc: freebsd-standards@freebsd.org Subject: Re: [Fwd: Re: df -kP != df -Pk] X-BeenThere: freebsd-standards@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Standards compliance List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 20 Sep 2006 20:56:26 -0000 Toby Peterson wrote: > On 20 September 2006, at 01.04.42, Bruce Evans wrote: > >> On Tue, 19 Sep 2006, Christian S.J. Peron wrote: >> >>> Anyone have any objections to me committing this patch? >> >> % @@ -123,6 +123,7 @@ >> % case 'b': >> % /* FALLTHROUGH */ >> % case 'P': >> % + Pflag++; >> >> Why not just "if (kflag) break;" here? >> >> % putenv("BLOCKSIZE=512"); >> % hflag = 0; >> % break; >> % @@ -171,6 +173,12 @@ >> % argc -= optind; >> % argv += optind; >> % % + /* >> % + * POSIX specifies that if both -P and -k options are used >> together a >> % + * 1k blocksize should be used. >> % + */ >> % + if (Pflag != 0 && kflag != 0) >> % + putenv("BLOCKSIZE=1k"); >> >> Then this would not be needed (except for the comment). >> >> POSIX actually requires BLOCKSIZE to be set to 1024, not to 1k, so >> that the >> header says 1024 and not 1k. df -k causes the wrong output now and the >> above preserves this bug. > > This is essentially what our (Apple's) patches to df do. -P does > nothing if -k is set, and -k sets BLOCKSIZE=1024. > > - Toby > > I just committed this to -CURRENT, as we as changing "1k" to "1024". -- Christian S.J. Peron csjp@FreeBSD.ORG FreeBSD Committer FreeBSD Security Team