[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Bug#1007140: please have a check for chown user.group



On Fri, Mar 11, 2022 at 01:47:27PM -0800, Felix Lechner wrote:
> On Fri, Mar 11, 2022 at 1:18 PM Marc Haber
> <mh+debian-packages@zugschlus.de> wrote:
> >
> > [^[:alpha:]]chown[[:space:]][^[:space:]]+\.[^[:space:]]
> 
> I cannot get that search to work properly on codesearch.d.n. Do you
> have a sample from the archive, please?

That regexp was copied verbatim from my codesearch search box. Did you
forget to switch the dropdown to "regex"?

The shadow package contains about ten of those constructs, for example

shadow_1:4.11.1+dfsg1-2/contrib/shadow-anonftp.patch

-    			fprintf (stderr, "%s: line %d: mkdir failed\n",
-					Prog, line);
-			else if (chown (newpw.pw_dir,
-					newpw.pw_uid, newpw.pw_gid))
-				fprintf (stderr, "%s: line %d: chown
				failed\n",

Greetings
Marc

-- 
-----------------------------------------------------------------------------
Marc Haber         | "I don't trust Computers. They | Mailadresse im Header
Leimen, Germany    |  lose things."    Winona Ryder | Fon: *49 6224 1600402
Nordisch by Nature |  How to make an American Quilt | Fax: *49 6224 1600421


Reply to: