WelcomeWelcome | FAQFAQ | DownloadsDownloads | WikiWiki

Author Topic: compiletc corrupts permissions on /tmp directory  (Read 2455 times)

Offline u54749

  • Jr. Member
  • **
  • Posts: 70
compiletc corrupts permissions on /tmp directory
« on: March 19, 2011, 06:43:30 AM »
Can't search the forum at this time so it's possible this bug was already submitted earlier.

Everything is latest version (tc 3.5.1, all tcz's, ...)

If you install compiletc the permissions on the /tmp directory change

Directly copy-pasted from the console:

~ $ ls -l / | grep tmp
drwxrwxrwt    6 root     staff          180 Mar 19 11:37 tmp

~ $ tce-load -i /mnt/win/bartel/devpack/compiletc.tcz
sed.tcz: OK
pkg-config.tcz: OK
patch.tcz: OK
make.tcz: OK
m4.tcz: OK
grep.tcz: OK
gperf.tcz: OK
gmp.tcz: OK
ppl.tcz: OK
mpfr.tcz: OK
cloog.tcz: OK
gcc_libs.tcz: OK
gcc.tcz: OK
gawk.tcz: OK
flex.tcz: OK
findutils.tcz: OK
diffutils.tcz: OK
bison.tcz: OK
base-dev.tcz: OK
binutils.tcz: OK
compiletc.tcz: OK

~ $ ls -l / | grep tmp
drwxr-sr-x    6 tc       staff          200 May 16  2010 tmp

If you run as user tc you will not notice much, but if you are logged on with another id, you lose write access to the temp directory.

Offline curaga

  • Administrator
  • Hero Member
  • *****
  • Posts: 11044
Re: compiletc corrupts permissions on /tmp directory
« Reply #1 on: March 19, 2011, 08:26:45 AM »
Could you check which of the packages does this?

grep -l tmp /usr/local/tce.installed/*
The only barriers that can stop you are the ones you create yourself.

Offline u54749

  • Jr. Member
  • **
  • Posts: 70
Re: compiletc corrupts permissions on /tmp directory
« Reply #2 on: March 19, 2011, 08:46:06 AM »
I get no output from the grep command

I temporarily modified tce-load to list the permissions of /tmp after every "OK" message

The permissions change at the very end after the install of compiletc

~ $ tce-load -i /mnt/win/bartel/devpack/compiletc.tcz
sed.tcz: OK
drwxrwxrwt    5 root     staff          160 Mar 19 13:38 tmp
pkg-config.tcz: OK
drwxrwxrwt    5 root     staff          160 Mar 19 13:38 tmp
patch.tcz: OK
drwxrwxrwt    5 root     staff          160 Mar 19 13:38 tmp
make.tcz: OK
drwxrwxrwt    5 root     staff          160 Mar 19 13:38 tmp
m4.tcz: OK
drwxrwxrwt    5 root     staff          160 Mar 19 13:38 tmp
grep.tcz: OK
drwxrwxrwt    5 root     staff          160 Mar 19 13:38 tmp
gperf.tcz: OK
drwxrwxrwt    5 root     staff          160 Mar 19 13:38 tmp
gmp.tcz: OK
drwxrwxrwt    5 root     staff          160 Mar 19 13:38 tmp
ppl.tcz: OK
drwxrwxrwt    5 root     staff          160 Mar 19 13:38 tmp
mpfr.tcz: OK
drwxrwxrwt    5 root     staff          160 Mar 19 13:38 tmp
cloog.tcz: OK
drwxrwxrwt    5 root     staff          160 Mar 19 13:38 tmp
gcc_libs.tcz: OK
drwxrwxrwt    5 root     staff          160 Mar 19 13:38 tmp
gcc.tcz: OK
drwxrwxrwt    5 root     staff          160 Mar 19 13:38 tmp
gawk.tcz: OK
drwxrwxrwt    5 root     staff          160 Mar 19 13:38 tmp
flex.tcz: OK
drwxrwxrwt    5 root     staff          160 Mar 19 13:38 tmp
findutils.tcz: OK
drwxrwxrwt    5 root     staff          160 Mar 19 13:38 tmp
diffutils.tcz: OK
drwxrwxrwt    5 root     staff          160 Mar 19 13:38 tmp
bison.tcz: OK
drwxrwxrwt    5 root     staff          160 Mar 19 13:38 tmp
base-dev.tcz: OK
drwxrwxrwt    5 root     staff          160 Mar 19 13:38 tmp
binutils.tcz: OK
drwxrwxrwt    5 root     staff          160 Mar 19 13:38 tmp
compiletc.tcz: OK
drwxr-sr-x    5 tc       staff          180 May 16  2010 tmp

Offline u54749

  • Jr. Member
  • **
  • Posts: 70
Re: compiletc corrupts permissions on /tmp directory
« Reply #3 on: March 19, 2011, 08:30:54 PM »
~ $ md5sum /mnt/win/bartel/devpack/compiletc.tcz
28f8bb0764e366fa95d418df76b6f5f7  /mnt/win/bartel/devpack/compiletc.tcz


Offline maro

  • Hero Member
  • *****
  • Posts: 1228
Re: compiletc corrupts permissions on /tmp directory
« Reply #4 on: March 19, 2011, 08:36:54 PM »
Not quite the same as:
Quote
wget -qO - http://distro.ibiblio.org/pub/linux/distributions/tinycorelinux/3.x/tcz/compiletc.tcz.md5.txt
3a6c492fdaf5db4c67e6bc4501e23ba8  compiletc.tcz

Offline u54749

  • Jr. Member
  • **
  • Posts: 70
Solved: compiletc corrupts permissions on /tmp directory
« Reply #5 on: March 19, 2011, 08:52:43 PM »
Re-downloaded compiletc.tcz.  md5sum is now correct.  The problem is gone.  Thanks for the support.