From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 4519 invoked by alias); 2 Jul 2014 08:22:08 -0000 Mailing-List: contact gdb-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-owner@sourceware.org Received: (qmail 4464 invoked by uid 89); 2 Jul 2014 08:22:04 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=-2.6 required=5.0 tests=BAYES_00,FREEMAIL_FROM,RCVD_IN_DNSWL_LOW,SPF_PASS autolearn=ham version=3.3.2 X-HELO: mail-ob0-f172.google.com Received: from mail-ob0-f172.google.com (HELO mail-ob0-f172.google.com) (209.85.214.172) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with (AES128-SHA encrypted) ESMTPS; Wed, 02 Jul 2014 08:22:03 +0000 Received: by mail-ob0-f172.google.com with SMTP id uy5so11965336obc.31 for ; Wed, 02 Jul 2014 01:22:01 -0700 (PDT) X-Received: by 10.60.34.225 with SMTP id c1mr55082821oej.14.1404289321610; Wed, 02 Jul 2014 01:22:01 -0700 (PDT) MIME-Version: 1.0 Received: by 10.182.66.116 with HTTP; Wed, 2 Jul 2014 01:21:41 -0700 (PDT) In-Reply-To: <83egy53wuy.fsf@gnu.org> References: <83egy53wuy.fsf@gnu.org> From: Aleksey Midenkov Date: Wed, 02 Jul 2014 08:22:00 -0000 Message-ID: Subject: Re: warning: not using untrusted file To: Eli Zaretskii Cc: gdb@sourceware.org Content-Type: text/plain; charset=UTF-8 X-SW-Source: 2014-07/txt/msg00004.txt.bz2 On Tue, Jul 1, 2014 at 7:46 PM, Eli Zaretskii wrote: >> From: Aleksey Midenkov >> Date: Tue, 1 Jul 2014 18:01:15 +0400 >> >> When I start gdb under sudo, I get this message: >> >> warning: not using untrusted file "/home/midenok/.gdbinit" >> >> Any easy way to overcome this? > > See the node "Auto-loading safe path" in the GDB manual. It doesn't work. # gdb warning: not using untrusted file "/home/midenok/.gdbinit" (gdb) show auto-load safe-path List of directories from which it is safe to auto-load files is /home/*. (gdb) I also tried other variants: /home/midenok /home/midenok/ /home/midenok/.gdbinit Nothing works!