[Bug 263290] freebsd-update(8) should create new /var/db/freebsd-update dir

From: <bugzilla-noreply_at_freebsd.org>
Date: Fri, 15 Apr 2022 10:41:10 UTC
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=263290

            Bug ID: 263290
           Summary: freebsd-update(8) should create new
                    /var/db/freebsd-update dir
           Product: Base System
           Version: 13.1-RELEASE
          Hardware: Any
                OS: Any
            Status: New
          Severity: Affects Only Me
          Priority: ---
         Component: bin
          Assignee: bugs@FreeBSD.org
          Reporter: vermaden@interia.pl

Hi.

If /var/db/freebsd-update dir does not exists then freebsd-update(8) fails with
error.

# freebsd-update upgrade -r 13.1-RC3
freebsd-update: Directory does not exist or is not writable:
/var/db/freebsd-update

IMHO if such dir does not exists then freebsd-update(8) should try to create it
and only fail if 'Permission denied.' error would occur (lack of write
permissions).


Regards.

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