#1 chown syntax not portable

closed
nobody
None
5
2006-03-10
2006-03-10
Anonymous
No

Smolder makes system calls to use the syntax

chown user.group files

This is not portable-- BSD expects a colon rather
than a dot as seperator.

Luckily, Perl has a built-in 'chown' function so we
can right portable code.

(This might have been related to my bad tmp dir
permissions.

Mark Stosberg

Discussion

  • Logged In: NO

    Although I was trying to avoid working in this, it turns
    out it got in my way, so I am, back again.

    I found that the colon separator is the standard on Linux
    and FreeBSD, so let's just use that for now.

    Perl's 'chown' lacks the "-R" option, although we could
    borrow the "chown" from the PPI project, which has this
    option.

    Anyway, I'm fixing a few by changing 'user.group' to
    'user:group" for the moment.

    Coming soon to the sqlite-support branch.

    Mark

     
  • Michael Peters
    Michael Peters
    2006-03-10

    • status: open --> closed
     
  • Michael Peters
    Michael Peters
    2006-03-10

    Logged In: YES
    user_id=1387047

    I think I caught all instances of using '.' instead of ':'.