This is the mail archive of the cygwin mailing list for the Cygwin project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: /bin/rebaselst: cannot create /var/cache/rebase/rebase_lst: Permission denied


On 2016-04-08 12:59, Achim Gratz wrote:
Houder <houder <at> xs4all.nl> writes:
MY APOLOGIES FOR WASTING YOUR TIME! I meant 444 (r--r--r--). Sigh.

Try if the following patch fixes your problem:

--- /bin/rebaselst
+++ #<buffer rebaselst>
@@ -97,6 +97,7 @@
     echo "creating empty $1"
     touch -t 7001010000  "$1"
   fi
+  chmod 644 "$1"
 }

 _tr () {

No ... it did not.

However, this modification did.

--- a/rebaselst.orig
+++ b/rebaselst
@@ -93,9 +93,14 @@ check_file () {
     echo "removing $1"
     rm -f $1
   fi
+  if [ "$2" = "no" -a  -e $1 ] ; then
+    echo "chmod 644 $1"
+    chmod 644 "$1"
+  fi
   if [ ! -e "$1" ] ; then
     echo "creating empty $1"
     touch -t 7001010000  "$1"
+    chmod 644 "$1"
   fi
 }

See attached file ...

Regards,
Henri

P.S. I did not examine /bin/rebaselst in detail ...

=====

Attachment: Achim_setup.log.full
Description: Text document

--
Problem reports:       http://cygwin.com/problems.html
FAQ:                   http://cygwin.com/faq/
Documentation:         http://cygwin.com/docs.html
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]