[Bug 220114] pkg unable to open database file when run from a non-existent dir

bugzilla-noreply at freebsd.org bugzilla-noreply at freebsd.org
Sun Jun 18 16:43:45 UTC 2017


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

            Bug ID: 220114
           Summary: pkg unable to open database file when run from a
                    non-existent dir
           Product: Base System
           Version: 10.3-RELEASE
          Hardware: Any
                OS: Any
            Status: New
          Severity: Affects Many People
          Priority: ---
         Component: bin
          Assignee: freebsd-bugs at FreeBSD.org
          Reporter: uzsolt at uzsolt.hu

$ mkdir ~/pkg_tmp
$ cd ~/pkg_tmp
$ rmdir ~/pkg_tmp
$ pwd
pwd: .: No such file or directory
$ pkg info
pkg: sqlite error while executing sqlite open in file pkgdb.c:1126: unable to
open database file
$ pkg -v
1.10.1

I saw this message when I 'cd' into a directory which is owned by package "foo"
(I don't remember which package but I think it's irrelevant) and some minutes
later I wanted to remove "foo".
I think the error message is deceptive (I could handle the package database
with sqlite and didn't understand why pkg can't access it).

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


More information about the freebsd-bugs mailing list