Closed Bug 1610249 Opened 6 years ago Closed 6 years ago

Typo in chown command in base Dockerfile

Categories

(Socorro :: General, task)

task
Not set
normal

Tracking

(Not tracked)

RESOLVED FIXED

People

(Reporter: stephane, Assigned: willkg)

Details

Attachments

(1 file)

User Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:72.0) Gecko/20100101 Firefox/72.0

Steps to reproduce:

Cloned latest Socorro sources from https://github.com/mozilla-services/socorro, and tried to built the Socorro project via guidelines in https://socorro.readthedocs.io/en/latest/overview.html
Checked the base Dockerfile which is used to built all images in path docker, and found an odd statement on line 10:
chown app.app /app/
and 39:
RUN chown -R app.app /mdsw /stackwalk
Expected both to have: app:app iso app.app

I looked into this because I wrote that code. I've been using . for decades and I was puzzled.

Per the GNU coreutils docs:

Some older scripts may still use ‘.’ in place of the ‘:’ separator. POSIX 1003.1-2001 (see Standards conformance) does not require support for that, but for backward compatibility GNU chown supports ‘.’ so long as no ambiguity results. New scripts should avoid the use of ‘.’ because it is not portable, and because it has undesirable results if the entire owner‘.’group happens to identify a user whose name contains ‘.’.

So, . works as long as the identities aren't ambiguous, but we should update to :.

Assignee: nobody → willkg
Status: UNCONFIRMED → ASSIGNED
Type: defect → task
Ever confirmed: true

This went to production just now in bug #1613110.

Status: ASSIGNED → RESOLVED
Closed: 6 years ago
Resolution: --- → FIXED
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: