Modify

Opened 10 years ago

Closed 10 years ago

Last modified 4 years ago

#2770 closed defect (worksforme)

Possible bug in UCI (if config files are outside of /etc/config)?

Reported by: anonymous Owned by: developers
Priority: normal Milestone: Barrier Breaker 14.07
Component: base system Version:
Keywords: Cc:

Description

Below could be a bug in UCI if you store the UCI configuration file outside of the /etc/config directory.

To reproduce this do:

  1. Create a config file we use /test-config
    config test-config
            option variable 'value'
    
  2. Show the contents of the config file using with UCI (uci show /test-config)
    /test-config.cfg1=test-config
    /test-config.cfg1.variable=value
    
  3. Change the value of the option variable to value1
    uci set /test-config.cfg1.variable=value1
    uci commit /test-config
    
  4. uci show /test-config
    /test-config.cfg1=test-config
    /test-config.cfg1.variable=value1
    
  5. And now comes the strange thing (cat /test-config)
    config test-config
            option variable 'value'
    config_set 'cfg1' 'variable' 'value1'
    

Attachments (0)

Change History (3)

comment:1 Changed 10 years ago by olli

  • Component changed from packages to base system
  • Summary changed from Possible bug in UCI (if config files are outsite of /etc/config)? to Possible bug in UCI (if config files are outside of /etc/config)?

comment:2 Changed 10 years ago by nbd

  • Resolution set to worksforme
  • Status changed from new to closed

this applies to the old shell implementation of uci, which was removed.

comment:3 Changed 4 years ago by jow

  • Milestone changed from Attitude Adjustment 12.09 to Barrier Breaker 14.07

Milestone Attitude Adjustment 12.09 deleted

Add Comment

Modify Ticket

Action
as closed .
The resolution will be deleted. Next status will be 'reopened'.
Author


E-mail address and user name can be saved in the Preferences.

 
Note: See TracTickets for help on using tickets.