git/list[1] front-page[2] threads[3] people[4] search[5] about
 

Re: [TopGit PATCH] tg.sh: Check for read permissions of help files

From
Petr Baudis <pasky@suse.cz>
Date
Aug 9, 2008, 08:24 UTC
Message-ID
<20080809082436.GU10151@machine.or.cz>
In-Reply-To
<36ca99e90808090035r6331a118k5a26486de1acf002@mail.gmail.com>
On Sat, Aug 09, 2008 at 09:35:19AM +0200, Bert Wesarg wrote:
Show 8 quoted lines
> Petr,
> 
> On Wed, Aug 6, 2008 at 10:02, Bert Wesarg <bert.wesarg@googlemail.com> wrote:
> > -       elif [ -f "@sharedir@/tg-$1.txt" ] ; then
> > +       elif [ -f "@sharedir@/tg-$1.txt" -a -r "@sharedir@/tg-$1.txt" ] ; then
> I saw your simplified commit for this, but you should know, that '-r'
> tests only for read permissions, not for a regular file, so this test
> succeed also for a pipe/socket for which do you have read permissions.
Is that a problem? :-)
				Petr "Pasky" Baudis
Previous: Bert Wesarg
Message 3 of 3 in “tg.sh: Check for read permissions of help files”
  1. tg.sh: Check for read permissions of help filesBert Wesarg, Aug 6, 2008
  2. Bert WesargAug 9, 2008
  3. Petr BaudisAug 9, 2008

Read the whole thread, see it on lore, or plain text.

$ cat FOOTERMessages come from the public archive at lore.kernel.org/git, fetched every hour. The front page is chosen and written each morning by an AI editor and can be wrong; the threads themselves are the record. About and API. For agents: an MCP server at https://gitlist.dev/mcp, and any thread, story or person page as Markdown by adding .md to its URL (or sending Accept: text/markdown). Details in /llms.txt.