projects
/
platform
/
core
/
system
/
deviced.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
7d85129
)
block: Modify check_primary_partition routine not to return true for all partitions
48/103648/3
accepted/tizen/3.0/common/20161213.164051
accepted/tizen/3.0/ivi/20161213.025301
accepted/tizen/3.0/mobile/20161213.025222
accepted/tizen/3.0/tv/20161213.025237
accepted/tizen/3.0/wearable/20161213.025247
submit/tizen_3.0/20161212.130455
author
pr.jung
<pr.jung@samsung.com>
Fri, 9 Dec 2016 04:56:48 +0000
(13:56 +0900)
committer
Taeyoung Kim
<ty317.kim@samsung.com>
Mon, 12 Dec 2016 11:03:59 +0000
(
03:03
-0800)
Change-Id: I1d1c029f781adea17d244dcbad4b401204d00b36
Signed-off-by: pr.jung <pr.jung@samsung.com>
src/block/block.c
patch
|
blob
|
history
diff --git
a/src/block/block.c
b/src/block/block.c
index
da50778
..
6f6acca
100644
(file)
--- a/
src/block/block.c
+++ b/
src/block/block.c
@@
-550,11
+550,10
@@
static bool check_primary_partition(const char *devnode)
int len;
int i;
- /* if no partition */
- if (!fnmatch(MMC_LINK_PATH, devnode, 0) ||
- !fnmatch(MMC_PATH, devnode, 0) ||
- !fnmatch(SCSI_PATH, devnode, 0))
- return true;
+ if (fnmatch(MMC_LINK_PATH, devnode, 0) &&
+ fnmatch(MMC_PATH, devnode, 0) &&
+ fnmatch(SCSI_PATH, devnode, 0))
+ return false;
snprintf(str, sizeof(str), "%s", devnode);