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

Houder houder@xs4all.nl
Fri Apr 8 11:54:00 GMT 2016


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 ...

=====
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: Achim_setup.log.full
URL: <http://cygwin.com/pipermail/cygwin/attachments/20160408/e057b89c/attachment.ksh>
-------------- next part --------------
--
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


More information about the Cygwin mailing list