Strip trailing "/"
Keep "." and ".." untouched
Keep root dir for files in the root dir
Return "." for files without directory and empty strings

See man 3 dirname

Resolves: 2928
You can view, comment on, or merge this pull request online at:

  https://github.com/rpm-software-management/rpm/pull/2945

-- Commit Summary --

  * Make %dirname behave like dirname (3)

-- File Changes --

    M rpmio/macro.c (18)
    M tests/rpmmacro.at (18)

-- Patch Links --

https://github.com/rpm-software-management/rpm/pull/2945.patch
https://github.com/rpm-software-management/rpm/pull/2945.diff

-- 
Reply to this email directly or view it on GitHub:
https://github.com/rpm-software-management/rpm/pull/2945
You are receiving this because you are subscribed to this thread.

Message ID: <rpm-software-management/rpm/pull/2...@github.com>
_______________________________________________
Rpm-maint mailing list
Rpm-maint@lists.rpm.org
http://lists.rpm.org/mailman/listinfo/rpm-maint

Reply via email to