From owner-freebsd-stable@FreeBSD.ORG Thu Oct 8 04:59:44 2009 Return-Path: Delivered-To: FreeBSD-Stable@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id BD9FC106568F for ; Thu, 8 Oct 2009 04:59:44 +0000 (UTC) (envelope-from jhellenthal@gmail.com) Received: from mail-yx0-f184.google.com (mail-yx0-f184.google.com [209.85.210.184]) by mx1.freebsd.org (Postfix) with ESMTP id 716C58FC16 for ; Thu, 8 Oct 2009 04:59:44 +0000 (UTC) Received: by yxe14 with SMTP id 14so9592792yxe.7 for ; Wed, 07 Oct 2009 21:59:43 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:sender:date:from:to:subject :message-id:user-agent:x-openpgp-key-id:x-openpgp-key-fingerprint :mime-version:content-type; bh=AtxtfjPpAwvhil7BPB/WwDkp5AKNXUZcsbSWrcRPoVQ=; b=qFOsRB/mD5F2fSKxLDQtOtqix/Q+dXGb6pIaX3/fLrpiL9CyeujIAm68WOOuGuzrIH F0RKM/+q8FgQbkKmr2xyj8WBTgdGrqdrMIn0swQsEfjGImP6zVUwfFfmx3c1sDy032LD 8pGmBv+3gpMKeYGcrZytt0hp9DOpm3BV9AQMU= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=sender:date:from:to:subject:message-id:user-agent:x-openpgp-key-id :x-openpgp-key-fingerprint:mime-version:content-type; b=v/wLUin6n5tFMyXnXZXbkKM3R08ksgfhqkUR3re7gusim7TPqcc48Ae+ia/9snU8ZY jbUiIMi3YIWzNmivDpoHAjY7AM+ce9qhYw5uxSB5+Imbh2nVv6lkQ+zmkFk+HCf0/vPj 8AirUwhrCV5sSSrs4MUgPxoLnrUixH7S4UnjI= Received: by 10.150.114.1 with SMTP id m1mr1512929ybc.182.1254977983725; Wed, 07 Oct 2009 21:59:43 -0700 (PDT) Received: from dimension.5p.local (adsl-99-19-46-114.dsl.klmzmi.sbcglobal.net [99.19.46.114]) by mx.google.com with ESMTPS id 13sm971966gxk.5.2009.10.07.21.59.41 (version=TLSv1/SSLv3 cipher=RC4-MD5); Wed, 07 Oct 2009 21:59:43 -0700 (PDT) Sender: "J. Hellenthal" Date: Thu, 8 Oct 2009 00:59:36 -0400 From: jhell To: FreeBSD Stable Message-ID: User-Agent: Alpine 2.00 (BSF 1167 2008-08-23) X-OpenPGP-Key-Id: 0x89D8547E X-OpenPGP-Key-Fingerprint: 85EF E26B 07BB 3777 76BE B12A 9057 8789 89D8 547E MIME-Version: 1.0 Content-Type: TEXT/PLAIN; format=flowed; charset=US-ASCII Cc: Subject: r197748 - base/stable/7/bin/sh/ 7.2-STABLE i386 X-BeenThere: freebsd-stable@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Production branch of FreeBSD source code List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 08 Oct 2009 04:59:44 -0000 ------------------------------------------------------------------------ r197748 | jilles | 2009-10-04 13:16:11 -0400 (Sun, 04 Oct 2009) | 7 lines MFC r197371: Mention that NUL characters are not allowed in sh(1) input. I do not consider this a bug because POSIX permits it and argument strings and environment variables cannot contain '\0' anyway. PR: bin/25542 ------------------------------------------------------------------------ Recently I have been noticing strange happenings of what I believe to be coming from the latest revision of /bin/sh. Prior to this revision it had not happened to the following examples. I am taking this as it could just be a following behavior in sudo due to fixing the first behavior in sh(1) but I am not sure and looking for feedback. How to repeat: ( Let me know if this is only me. ) # sudo rm -rf /usr/ports/*/*/work After issuing the above command the process waits for the list of (work) directories to be collected and ends by bombing out with pam timeout error. This could probably be easier seen with higher IO load but it has struck me kind of odd since I have not seen it at all till now. Also once it gets started you can not ^C the process until it has run the full directory tree. Behavior before, you could issue the command and it would ask you for your password before it would issue any IO to the disk. Is the new behavior called for adjusting your command to sh -c "rm -rf /usr/blah/bloo/bla*" ? Thanks -- ;; dataix.net!jhell 2048R/89D8547E 2009-09-30 ;; BSD since FreeBSD 4.2 Linux since Slackware 2.1 ;; 85EF E26B 07BB 3777 76BE B12A 9057 8789 89D8 547E