octave-bug-tracker
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Octave-bug-tracker] [bug #33109] help doesn't work if current directory


From: Stephen Montgomery-Smith
Subject: [Octave-bug-tracker] [bug #33109] help doesn't work if current directory is not writable
Date: Sun, 17 Apr 2011 19:24:34 +0000
User-agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.9.1.16) Gecko/20101206 SeaMonkey/2.0.11

URL:
  <http://savannah.gnu.org/bugs/?33109>

                 Summary: help doesn't work if current directory is not
writable
                 Project: GNU Octave
            Submitted by: stephenms
            Submitted on: Sun 17 Apr 2011 07:24:34 PM GMT
                Category: None
                Severity: 3 - Normal
                Priority: 5 - Normal
              Item Group: Incorrect Result
                  Status: None
             Assigned to: None
         Originator Name: Stephen Montgomery-Smith
        Originator Email: 
             Open/Closed: Open
         Discussion Lock: Any
                 Release: 3.2.4
        Operating System: *BSD

    _______________________________________________________

Details:

+verbitim+
cd /a-directory-without-write-permissions
octave --eval "help inv"
-verbitim-

gives some horrible error messages.

Here is the fix:

+verbitim+
diff -ur scripts/help-orig/__makeinfo__.m scripts/help/__makeinfo__.m
--- scripts/help-orig/__makeinfo__.m    2011-04-17 18:11:18.000000000 +0000
+++ scripts/help/__makeinfo__.m 2011-04-17 18:10:02.000000000 +0000
@@ -124,7 +124,7 @@

   unwind_protect
     ## Write Texinfo to tmp file
-    [fid, name, msg] = mkstemp ("octave_help_XXXXXX", true);
+    [fid, name, msg] = mkstemp (sprintf("%s/octave_help_XXXXXX",P_tmpdir()),
tr
ue);
     fwrite (fid, text);
     fclose (fid);
-verbitim-

It is important to fix this problem, because it plays havoc with the FreeBSD
tinderbox build system.





    _______________________________________________________

Reply to this item at:

  <http://savannah.gnu.org/bugs/?33109>

_______________________________________________
  Message sent via/by Savannah
  http://savannah.gnu.org/




reply via email to

[Prev in Thread] Current Thread [Next in Thread]