Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
View | Details | Raw Unified | Return to bug 180935 | Differences between
and this patch

Collapse All | Expand All

(-)mozilla-launcher-1.56.orig (-17 / +22 lines)
Lines 406-428 Link Here
406
406
407
  # shouldn't have files in profile that are owned by a user other
407
  # shouldn't have files in profile that are owned by a user other
408
  # than the current one.  http://bugs.gentoo.org/show_bug.cgi?id=59849
408
  # than the current one.  http://bugs.gentoo.org/show_bug.cgi?id=59849
409
  f=$(find ~/{.,.mozilla/}${zero%-bin} ! -uid ${EUID} 2>/dev/null | head -n10)
409
410
  if [[ -n ${f} ]]; then
410
  # Kicked it off again, since it may make it unusable for folks who
411
    cat <<EOF
411
  # have symlinks in their profile dir ...
412
Error launching ${zero}:
412
  # http://bugs.gentoo.org/show_bug.cgi?id=180935
413
413
  
414
There are files in your profile that are owned by a user other than
414
#  f=$(find ~/{.,.mozilla/}${zero%-bin} ! -uid ${EUID} 2>/dev/null | head -n10)
415
$(id -un).  ${zero} can't execute in this condition.  Here are some of
415
#  if [[ -n ${f} ]]; then
416
the files that I found:
416
#    cat <<EOF
417
EOF
417
#Error launching ${zero}:
418
    echo "${f}" | sed 's/^/    /'
418
#
419
    (( $(echo "${f}" | wc -l) == 10 )) && echo "    ..."
419
#There are files in your profile that are owned by a user other than
420
    echo
420
#$(id -un).  ${zero} can't execute in this condition.  Here are some of
421
    echo "You can fix this problem by running the following:"
421
#the files that I found:
422
    echo "    su -c 'chown -R $(id -un):$(id -gn) $HOME/.mozilla'"
422
#EOF
423
    echo
423
#    echo "${f}" | sed 's/^/    /'
424
    return 101
424
#    (( $(echo "${f}" | wc -l) == 10 )) && echo "    ..."
425
  fi >&2
425
#    echo
426
#    echo "You can fix this problem by running the following:"
427
#    echo "    su -c 'chown -R $(id -un):$(id -gn) $HOME/.mozilla'"
428
#    echo
429
#    return 101
430
# fi >&2
426
431
427
  # compreg.dat and/or chrome.rdf will screw things up if it's from an
432
  # compreg.dat and/or chrome.rdf will screw things up if it's from an
428
  # older version.  http://bugs.gentoo.org/show_bug.cgi?id=63999
433
  # older version.  http://bugs.gentoo.org/show_bug.cgi?id=63999

Return to bug 180935