[Bug 229346] freebsd-update install return code changed

bugzilla-noreply at freebsd.org bugzilla-noreply at freebsd.org
Tue Jun 26 15:31:13 UTC 2018


https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=229346

            Bug ID: 229346
           Summary: freebsd-update install return code changed
           Product: Base System
           Version: 11.2-RELEASE
          Hardware: amd64
                OS: Any
            Status: New
          Severity: Affects Many People
          Priority: ---
         Component: bin
          Assignee: bugs at FreeBSD.org
          Reporter: mcole36 at gmail.com

In 11.1 if you run:

freebsd-update install

and have no updates available you get a return text of:

No updates are available to install.
Run '/usr/sbin/freebsd-update fetch' first.

and a return code of:

echo $?
1

In 11.2 this returns the same text, but the return code is now:

echo $?
0

This breaks many scripts and jail managers because during an upgrade they loop
to see how many times freebsd-update install needs to run (some times
multiple).  This will affect most jail users.

-- 
You are receiving this mail because:
You are the assignee for the bug.


More information about the freebsd-bugs mailing list