Bug 197306

Summary: Improve feedback of mergemaster
Product: Base System Reporter: Kalle Richter <krichter>
Component: binAssignee: freebsd-bugs (Nobody) <bugs>
Status: New ---    
Severity: Affects Only Me    
Priority: ---    
Version: 9.3-RELEASE   
Hardware: Any   
OS: Any   

Description Kalle Richter 2015-02-04 02:21:10 UTC
Invoking `mergemaster` fails with the error message `Unknown modifier 't'`. Error messages of such low quality should not be shown to the user. He_she needs to know what went wrong (in which file, etc.) and how to get starting fixing the issue. The complete output of the failing command is:

    # mergemaster

    *** The directory specified for the temporary root environment,
        /var/tmp/temproot, exists.  This can be a security risk if untrusted
        users have access to the system.

      Use 'd' to delete the old /var/tmp/temproot and continue
      Use 't' to select a new temporary root directory
      Use 'e' to exit mergemaster

      Default is to use /var/tmp/temproot as is

    How should I deal with this? [Use the existing /var/tmp/temproot] 

       *** Leaving /var/tmp/temproot intact

    *** Creating the temporary root environment in /var/tmp/temproot
     *** /var/tmp/temproot ready for use
     *** Creating and populating directory structure in /var/tmp/temproot

    Unknown modifier 't'

    Syntax error: Unterminated quoted string

      *** FATAL ERROR: Cannot 'cd' to /usr/src and install files to
          the temproot environment
Comment 1 Glen Barber freebsd_committer 2015-02-04 02:37:07 UTC
Please provide output of 'uname -aUK'