From owner-freebsd-chat Fri Feb 14 18: 4:40 2003 Delivered-To: freebsd-chat@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id EFCAF37B401 for ; Fri, 14 Feb 2003 18:04:38 -0800 (PST) Received: from hotmail.com (f36.sea2.hotmail.com [207.68.165.36]) by mx1.FreeBSD.org (Postfix) with ESMTP id 8A79E43FAF for ; Fri, 14 Feb 2003 18:04:38 -0800 (PST) (envelope-from puralifecr@hotmail.com) Received: from mail pickup service by hotmail.com with Microsoft SMTPSVC; Fri, 14 Feb 2003 18:04:38 -0800 Received: from 196.40.75.43 by sea2fd.sea2.hotmail.msn.com with HTTP; Sat, 15 Feb 2003 02:04:38 GMT X-Originating-IP: [196.40.75.43] From: "pura life CR" To: freebsd-chat@freebsd.org Subject: 2 Misc questions Date: Fri, 14 Feb 2003 20:04:38 -0600 Mime-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1; format=flowed Message-ID: X-OriginalArrivalTime: 15 Feb 2003 02:04:38.0261 (UTC) FILETIME=[98261250:01C2D496] Sender: owner-freebsd-chat@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.org Hi, I have a couple of question that dont allow me to sleep properly. here we go: 1. is this suid root code exploitable with a buffer overflow technique: /* foo.c */ main(int argc, char *argv[]){ ... setuid(0) ... if ( ((strcmp(argv[i],"foo")) == 0) || ((strcmp(argv[i],"bar")) == 0) ) .... } 2. how can I redirect stderr to /dev/null? for example when I am 'finding' a file in the whole dir tree I dont want to look at the "permised denied" warning. ej: find / -name "foo" -print > /dev/null & <--- how to redict stderr that's all for now.... _________________________________________________________________ To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-chat" in the body of the message