@@ -1466,12 +1466,6 @@ static bool item_equal(Item *a, Item *b) {
14661466
14671467static int parse_line (const char * fname , unsigned line , const char * buffer ) {
14681468
1469- static const Specifier specifier_table [] = {
1470- COMMON_SYSTEM_SPECIFIERS ,
1471- COMMON_TMP_SPECIFIERS ,
1472- {}
1473- };
1474-
14751469 _cleanup_free_ char * action = NULL ,
14761470 * name = NULL , * resolved_name = NULL ,
14771471 * id = NULL , * resolved_id = NULL ,
@@ -1515,7 +1509,7 @@ static int parse_line(const char *fname, unsigned line, const char *buffer) {
15151509 name = mfree (name );
15161510
15171511 if (name ) {
1518- r = specifier_printf (name , NAME_MAX , specifier_table , NULL , & resolved_name );
1512+ r = specifier_printf (name , NAME_MAX , system_and_tmp_specifier_table , NULL , & resolved_name );
15191513 if (r < 0 )
15201514 return log_error_errno (r , "[%s:%u] Failed to replace specifiers in '%s': %m" , fname , line , name );
15211515
@@ -1530,7 +1524,7 @@ static int parse_line(const char *fname, unsigned line, const char *buffer) {
15301524 id = mfree (id );
15311525
15321526 if (id ) {
1533- r = specifier_printf (id , PATH_MAX - 1 , specifier_table , NULL , & resolved_id );
1527+ r = specifier_printf (id , PATH_MAX - 1 , system_and_tmp_specifier_table , NULL , & resolved_id );
15341528 if (r < 0 )
15351529 return log_error_errno (r , "[%s:%u] Failed to replace specifiers in '%s': %m" ,
15361530 fname , line , name );
@@ -1541,7 +1535,7 @@ static int parse_line(const char *fname, unsigned line, const char *buffer) {
15411535 description = mfree (description );
15421536
15431537 if (description ) {
1544- r = specifier_printf (description , LONG_LINE_MAX , specifier_table , NULL , & resolved_description );
1538+ r = specifier_printf (description , LONG_LINE_MAX , system_and_tmp_specifier_table , NULL , & resolved_description );
15451539 if (r < 0 )
15461540 return log_error_errno (r , "[%s:%u] Failed to replace specifiers in '%s': %m" ,
15471541 fname , line , description );
@@ -1557,7 +1551,7 @@ static int parse_line(const char *fname, unsigned line, const char *buffer) {
15571551 home = mfree (home );
15581552
15591553 if (home ) {
1560- r = specifier_printf (home , PATH_MAX - 1 , specifier_table , NULL , & resolved_home );
1554+ r = specifier_printf (home , PATH_MAX - 1 , system_and_tmp_specifier_table , NULL , & resolved_home );
15611555 if (r < 0 )
15621556 return log_error_errno (r , "[%s:%u] Failed to replace specifiers in '%s': %m" ,
15631557 fname , line , home );
@@ -1573,7 +1567,7 @@ static int parse_line(const char *fname, unsigned line, const char *buffer) {
15731567 shell = mfree (shell );
15741568
15751569 if (shell ) {
1576- r = specifier_printf (shell , PATH_MAX - 1 , specifier_table , NULL , & resolved_shell );
1570+ r = specifier_printf (shell , PATH_MAX - 1 , system_and_tmp_specifier_table , NULL , & resolved_shell );
15771571 if (r < 0 )
15781572 return log_error_errno (r , "[%s:%u] Failed to replace specifiers in '%s': %m" ,
15791573 fname , line , shell );
0 commit comments